Modifying site header & page header for 'Nothing Found' page

  • Author
    Posts
  • #162638

    hughsueonghwushin
    Member
    Original poster

    Hi, Taras,

    Can you please give me a css solution to change text & background colour of site header & page header for ‘Nothing Found’ page?
    I applied the css below, but it doesn’t affect the ‘Nothing Found’ page…


    .single #primary-header,
    .blog #primary-header,
    .page:not(.home) #primary-header {
    background-color: #ffffff;
    color: #383A3B;
    text-shadow: none;
    transition: none;
    }

    #primary-header .entry-meta {
    color: #383A3B;
    }

    .single .site-header,
    .blog .site-header,
    .page:not(.home) .site-header {
    background-color: #ffffff;
    color: #383A3B;
    text-shadow: none;
    transition: none;
    }

    Thank you,

    Hugh

    The blog I need help with is: hughshin.com

    #162659

    tarasdashkevych
    Theme Author

    Hi Hugh,

    Please add this custom CSS to make style changes in the ‘Nothing Found’ page:

    
    .search-no-results #primary-header{
      background-color: #ffffff;
      color: #383A3B;
      text-shadow: none;
      transition: none;
    }
    
    .search-no-results .site-header {
      background-color: #ffffff;
      color: #383A3B;
      text-shadow: none;
      transition: none;
    }
    

    Let me know if you have any additional questions.

    Kind regards,
    Taras

    #162690

    hughsueonghwushin
    Member
    Original poster

    Thanks Taras!

    Can you please give me the CSS to apply the same changes to the page with a title ‘OOPS! THAT PAGE CAN’T BE FOUND.’?

    Regards,
    Hugh

    #162693

    tarasdashkevych
    Theme Author

    Hugh,

    To make the same changes to the 404 page, please use this custom CSS:

    
    .error404 #primary-header{
      background-color: #ffffff;
      color: #383A3B;
      text-shadow: none;
      transition: none;
    }
    
    .error404 .site-header {
      background-color: #ffffff;
      color: #383A3B;
      text-shadow: none;
      transition: none;
    }
    

    You can also combine both CSS (the ‘Nothing Found’ page and the 404 page):

    
    .search-no-results #primary-header,
    .error404 #primary-header {
      background-color: #ffffff;
      color: #383A3B;
      text-shadow: none;
      transition: none;
    }
    
    .search-no-results .site-header,
    .error404 .site-header {
      background-color: #ffffff;
      color: #383A3B;
      text-shadow: none;
      transition: none;
    }
    

    Let me know if you have any additional questions.

    Kind regards,
    Taras

    #162694

    hughsueonghwushin
    Member
    Original poster

    Thank you!

    Always appreciate your support, :)

    Hugh

    #162699

    tarasdashkevych
    Theme Author

    You are very welcome, Hugh! :)

    Kind regards,
    Taras

The topic ‘Modifying site header & page header for 'Nothing Found' page’ is closed to new replies.