This topic has 1 reply, 2 voices, and was last updated 8 years by Laura.

  • Author
  • #85114
     tonevski
    Participant

    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

    #85242
     Laura
    Moderator

    Hello, please try by adding this to functions.php of child theme

    COPY CODE
    
    function 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 theme

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura 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 🙂

Viewing 2 posts - 1 through 2 (of 2 total)

The forum ‘General questions’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?