• I want my navigation bar colors to match the header I have on each page, but I don’t know how. Do I need to just add css or do I need conditional tags? I tried adding:

    <?php
    if (is_page(‘dirty-laundry’)){
    echo ‘border-top-color: solid #000000;’;
    }
    ?>

    to the header.php but it’s not working. I’ve also tried adding:

    .nav2-container .page-id-383 {
    border-top-color: solid #000000;
    }

    to the stylesheet but that’s not working either. I don’t understand coding very well – so any help would be appreciated!

    https://theapatheticprocrastinator.com/dirty-laundry/

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Making Navigation Bars a Different Color on Each Page’ is closed to new replies.