WordPress.org

Ready to get started?Download WordPress

Forums

Static home page and Active State (3 posts)

  1. iduma
    Member
    Posted 6 years ago #

    Hi there,

    I've switched my home page to be a static page using the Options/reading method in WP admin, and created a News page to house the blog posts. All is good, however the Main menu CSS isn't working properly now: these 2 pages are not getting the proper CSS applied to them when they are the current or active page state. All the other pages are ok.

    I am not a coder or CSS expert. Any suggestions? Oh, I also had to use the exclude_page plugin because the designated Home page kept appearing in the main menu too.

    The site is http://streelymaidfilms.com
    Theme is techdesignscouk-004-v10

    I've found this code in the header.php page. Not sure if that helps.

    <?php if (is_page()) { $highlight = "page_item"; } else {$highlight = "page_item current_page_item"; } ?>

    thanks...

  2. garryconn
    Member
    Posted 6 years ago #

    I can't see anything wrong with the theme. It looks nice. What is messed up? I haven't see what it is supposed to look like, so many describe what it supposed to look like in comparison with with it looks like now.

  3. iduma
    Member
    Posted 6 years ago #

    The Main menu isn't working properly.

    When you are on the Home page, the Main menu is not showing the proper style. The style for an active page is bright pink background with white letters.

    Same for News page. I this is because I switched the Home page to a static page, and the original blog posts page became the News page.

    All other pages are working fine, but these are not showing the active state.

Topic Closed

This topic has been closed to new replies.

About this Topic