Change Intro text using category as main navigation

resolved (4 posts) (2 voices)

  1. nxpage
    Member

    Currently we have a few WP menu items that are based on WP categories. Example attached is Advocacy. When you click Advocacy in main menu the Intro area says "Archives" in big letters and beneath is the teaser "Category Archive for: ‘Advocacy’". Technically it's a post assigned to the category Advocacy, and the main menu item 'Advocacy' pulls all posts with that category.

    We would like it to just say "Advocacy" instead of Archives.

    Attachments

    1. Awake-Intro-Text-150610-1.jpg (66.2 KB, 0 downloads) 2 years old
    Posted 2 years ago #
  2. Elliott
    Support

    Hello nxpage,

    You can change that around line 1072 - 1092 in the /lib/functions/theme.php file.

    Posted 2 years ago #
  3. nxpage
    Member

    Thanks Elliott but I'm not a programmer and could not figure out how to change this.

    1. What would the change need to be?

    2. Can this be placed in our /awake-child/functions.php file? We're using a child theme and we don't want to modify core source code for risk of overwriting with theme updates.

    3. Side question: How can I get email when a forum/message is answered?

    Posted 2 years ago #
  4. Elliott
    Support

    1. You can try using this function, https://codex.wordpress.org/Function_Reference/is_category, to check for a certain category and then change the text.

    2. You could try copying the whole function and place it inside the child theme functions.php file.

    3. There is a "RSS feed for this topic" link beneath this post.

    Posted 2 years ago #

Reply

You must log in to post.

Construct WordPress Theme
Construct wordpress theme
Myriad WordPress Theme
Myriad wordpress theme
Method WordPress Theme
Method wordpress theme
Fusion WordPress Theme
Fusion wordpress theme
Elegance WordPress Theme
Elegance wordpress theme
Echelon WordPress Theme
Echelon wordpress theme
Dejavu WordPress Theme
Dejavu wordpress theme
Modular WordPress Theme
Modular wordpress theme