I would like to re-name the anchor sections ex #shapely_home_parallax-3 and #shapely_home_testimonial-3
Can you please provide specific instructions on how to do so? I realize it must be a line in a certain php file I need to edit in ftp but have been looking for a long time and cant seem to find it. Changing the class on the actual widget php crashed my site so obviously its not that.
I have read in another forum this is possible on one of your other themes so assume its possible on Shapely?
Sorry for a late response, you meant you want to change these ID? http://take.ms/OWSzZ If so, they can’t able to change, it is automatically generated by WordPress widget.
Let us know,
I don’t see how they were created by WordPress when they include the name of your theme? There absolutely has to be a way to rename them. Don’t see how it would be “impossible”. Perhaps renaming the widget, replacing also in style sheet etc etc?
Are you 100% sure this is completely impossible?
Also - I am mainly interested in changing how it appears in the URL string when active / on screen. That really is my main concern. Is there a way to accomplish that?
Why I said it is not possible, is because that is the widget name registered in the WordPress, you can of course change that in the code, go to
and in line #16 you will find this line,
parent::construct( 'shapely_recent_posts', esc_html( '[Shapely] Recent Posts', 'shapely-companion' ), $widget_ops );
change that to,
parent::construct( 'shapely_recent_posts_new', esc_html( '[Shapely] Recent Posts', 'shapely-companion' ), $widget_ops );
Likewise you can change all the widget names in their appropriate class files here: /wp-content/plugins/shapely-companion/inc/widgets/
after that, re-add the widgets to the home page, that way you can change the name in to something else.
Let us know if you have doubts.
Still a bit confused, at what point and where do I rename them what I would like to name them? Also, so I need to change both the recent posts php and the class files or just one of them?
I just gave an example as I used recent posts, in your cases you’re asking for testimonials and parallax, so that edit the appropriate files.
So you meant, instead liking the section like this http://webbiz.obscureentrepreneur.com/#shapely_home_parallax-3 you want something like this, http://webbiz.obscureentrepreneur.com/#who_we_are ? In that case, I suggest you not to edit the files, and I forward this featured request to the development team.
Let us know,
Forward the request just for you: https://github.com/puikinsh/shapely/issues/229 you can keep an eye on the issue there, also you can post your feature request for the theme here: https://colorlibsupport.com/t/shapely-feature-requests/
Let us know,
Yes exactly what I am trying to do! Don’t want clients to see what theme I am using and that gives it away.
Just wondering, what were the instructions you were giving me then, what would that have done? It would not fix the issue as in the example you provided and I agree with?
In that case, for now edit these files,
/wp-content/plugins/shapely-companion/inc/widgets/class-shapely-home-parallax.php line #19, change this,
parent::construct( 'shapely_home_parallax', esc_html( '[Shapely] Parralax Section For FrontPage', 'shapely-companion' ), $widget_ops );
/wp-content/plugins/shapely-companion/inc/widgets/class-shapely-home-testimonials.php line #15,
parent::__construct( 'shapely_home_testimonial', esc_html__( '[Shapely] Testimonial Section For FrontPage', 'shapely-companion' ), $widget_ops );
and edit those words, and re-add that to the home page widgets, it will do the trick. I already report this feature request to the dev team, hopefully it will be added to the upcoming versions.
Let us know,
I am so glad to see this and thank you for interior fit out company dubaisharing this information.I hope you add more details about the topic and good work keep it up.
this seems to have worked perfect! exactly what I was looking to do, it changed the url to what I noted in the edited line you provided.
A QUICK / IMPORTANT NOTE FOR ANYONE WHO MAKES THIS SAME CHANGE:
- when you change the anchor title via the method described above, after you re-add the widget to your page (which you will need to do for it to appear again), make sure to right click on the widget and “inspect source”, it does add a digit / number at the end of the title. this is important because if you are linking to that anchor from anywhere, although you may have changed the name in the file to something like “testing_home_testimonial” the actual anchor point url will end up being something like: “testing_home_testimonial_4”
Laranz - Cant speak for others but I can live with the number at the end of the url string. My main concern was just changing the wording. Not sure if other people in future may care about that number being gone as well or how to get rid of it.
Thank you for your help! I suppose we can mark this as resolved and I will start a new thread if any further issues arise. GREATLY appreciate your patience!
ALSO…Remember you will have to go back and edit any custom css, using the renamed tag
Glad we helped.
Thanks for the caution words, I already forward this request to the devs, if that is request my more members, we will implement it.
Let us know If you have any other questions. Please feel free to contact us again in the future regarding any other issues.
If you’re happy with our service, don’t forget to rate us: [Shapely] Reviews | WordPress.org