-
Author
-
October 30, 2015 at 19:48 #85114tonevskiParticipant
How to change the testimonials and clients pages URL.
mysite.com/testimonials
mysite.com/clients
I would like to have my own pages with this names
October 31, 2015 at 22:20 #85242LauraModeratorHello, please try by adding this to functions.php of child theme
COPY CODEfunction add_custom_rewrite_rule() { // First, try to load up the rewrite rules. We do this just in case // the default permalink structure is being used. if( ($current_rules = get_option('rewrite_rules')) ) { // Next, iterate through each custom rule adding a new rule // that replaces 'clients' with 'customers' and give it a higher // priority than the existing rule. foreach($current_rules as $key => $val) { if(strpos($key, 'movies') !== false) { add_rewrite_rule(str_ireplace('clients', 'customers', $key), $val, 'top'); add_rewrite_rule(str_ireplace('testimonials', 'feedbacks', $key), $val, 'top'); } // end if } // end foreach } // end if/else // ...and we flush the rules flush_rewrite_rules(); } // end add_custom_rewrite_rule add_action('init', 'add_custom_rewrite_rule');
Change feedbacks and customers for the ones you want.
This should redirect it, or you could hire a developer to change it directly in theme files to child themeHi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura Solanes - Graphic Designer and Web Designer
Please be patient as I try to answer each topic as fast as i can.
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Always happy to help you 🙂
-
AuthorPosts
Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘General questions’ is closed to new topics and replies.