Viewing 15 replies - 16 through 30 (of 36 total)
  • Thread Starter WSmith7069

    (@wsmith7069)

    That code hasnt worked. I think Im just going to have to give up with this. It clearly isn’t that easy.

    I just realized I was doing that completely wrong; I was focused on your ‘about’ statement before;

    Please try this;

    <?php if ( !is_front_page ) { ?>
    <style type="text/css">
    .site-header a, .main-navigation ul ul a, #header-right-menu ul ul a, .menu-open, .dashicons.menu-open, .menu-close, .dashicons.menu-close {
        color:#000 !important;
    }
    .top-navigation ul li a, #header-right-menu ul li a {
       color:#000 !important;
    }
    <?php } ?>
    Thread Starter WSmith7069

    (@wsmith7069)

    When I put that text into the footer.php it turns it all back to white

    <?php if ( !is_front_page() ) { ?>
    <style type="text/css">
    .site-header a, .main-navigation ul ul a, #header-right-menu ul ul a, .menu-open, .dashicons.menu-open, .menu-close, .dashicons.menu-close {
        color:#000 !important;
    }
    .top-navigation ul li a, #header-right-menu ul li a {
       color:#000 !important;
    }
    <?php } ?>

    My mistake with the closing tags, I do apologize. This should work, basically the above code gets put in, when its all other pages but the homepage… when its on homepage, this gets omitted. However, I’m also thinking if your cache is caching this bit of code and doing it for all pages. If you can give it one more try.

    Here’s also what I’m thinking if the above fix doesn’t work. Did you select your home page and your blog page under settings? If not, then we would have to change that code above slightly.

    Thread Starter WSmith7069

    (@wsmith7069)

    That getting somewhere.

    Now on the homepage it has disabled my master slider plugin

    View post on imgur.com

    Take a look on https://www.williamsmithphoto.byethost3.com to see if the problem is the same on your end.

    Let’s do this then;

    <?php if ( !is_front_page() ) : ?>
    <style type="text/css">
    .site-header a, .main-navigation ul ul a, #header-right-menu ul ul a, .menu-open, .dashicons.menu-open, .menu-close, .dashicons.menu-close {
        color:#000 !important;
    }
    .top-navigation ul li a, #header-right-menu ul li a {
       color:#000 !important;
    }
    <?php endif; ?>
    Thread Starter WSmith7069

    (@wsmith7069)

    Nope, that hasn’t made it come back?

    How could I forget, I guess Thursday isn’t my day.

    <?php if ( !is_front_page() ) : ?>
    <style type="text/css">
    .site-header a, .main-navigation ul ul a, #header-right-menu ul ul a, .menu-open, .dashicons.menu-open, .menu-close, .dashicons.menu-close {
        color:#000 !important;
    }
    .top-navigation ul li a, #header-right-menu ul li a {
       color:#000 !important;
    }
    </style>
    <?php endif; ?>

    I opened the ‘<style’ and never closed it ‘</style>’ …

    Thread Starter WSmith7069

    (@wsmith7069)

    Im sorry to say that it made no difference, still no master slider?

    Cache cleared?

    Thread Starter WSmith7069

    (@wsmith7069)

    Cache is cleared. If I take the code away, the master slider isn’t there, has it broken somewhere else?

    Let’s test this; I see a jQuery issue so that wouldn’t have anything to do with what we implemented but we can remove the entire code from Footer, clear cache and see if our slider comes back.

    Thread Starter WSmith7069

    (@wsmith7069)

    This code

    <?php if ( !is_front_page() ) : ?>
    <style type=”text/css”>
    .site-header a, .main-navigation ul ul a, #header-right-menu ul ul a, .menu-open, .dashicons.menu-open, .menu-close, .dashicons.menu-close {
    color:#000 !important;
    }
    .top-navigation ul li a, #header-right-menu ul li a {
    color:#000 !important;
    }
    </style>
    <?php endif; ?>

    Or the entire footer.php contents?

    WSmith7069; exactly what I was thinking. I’m thinking you were caching the old working code, until you cleared cache… it wasn’t working to begin with, it was only working because the code was cached. Not real solution. So let’s debug this one.

Viewing 15 replies - 16 through 30 (of 36 total)
  • The topic ‘Change colour of text in header on certain pages?’ is closed to new replies.