• Resolved foodergolove

    (@foodergolove)


    Website is http://www.millerfoodguide.com

    I have some forums on my site. Before people go to the forums, I would like them to be directed to a page of forum rules, and an “I Agree” button: this page exists.

    So, I have two pages: (1) Forum Rules and (2) Forums.

    On the featured pages icons on the main page, I would like the actual icon to say “Forums”, but when users click, I want them to be taken to the “Forum Rules” page, not directly to “Forums”.

    I do not use “featured text.” I find it redundant. So, is there a way for the featured page icon to say “Forums” but to actually link to “Forum Rules,” WITHOUT using featured text? Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Here is what you need:

    add_filter('tc_fp_title' , 'my_custom_fp_titles', 10 ,3);
    function my_custom_fp_titles( $original_title , $fp_id = null , $page_id = null ) {
    
        //assigns a custom title by page id
        $custom_title = array(
            //page id => 'Custom title'
            4734 => 'Forums'
        );
    
        //if no custom title is defined for the current page id, return original
        if ( ! isset($custom_title[$page_id]) )
            return $original_title;
    
        return $custom_title[$page_id];
    }

    Paste into functions.php make sure you get every character including the bracket at the end, if you miss one the site will crash.

    Thread Starter foodergolove

    (@foodergolove)

    ibogo, thank you! Trying it here in a few minutes.

    Thread Starter foodergolove

    (@foodergolove)

    It worked: thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Featured Pages: Change Title’ is closed to new replies.