Support » Fixing WordPress » child css code additions not working

  • hmabpera


    I’ve added CSS through Customize ->Advanced Options ->Additional CSS to successfully prevent the header image from loading on a particular page. When I remove it from this section and place it into my child theme style.css it no longer adds the styling to the new page. There is similar code in the style.css page which has been there for quite some time for use on other pages which still does give the correct result, i.e., no header image. But when I add the same code for a new page to my child style.css, the header image still appears.
    What could be the cause of this? I have tried clearing the browser cache but that didn’t work. In the code below, all the pages except the new one, child css-test, do not have the header image but that new one does unless I put that same line of code in the Customizer section.

    /* Remove header image from the Calendar page */
    .page-id-3799 #branding img {display:none} /* calendar */
    .page-id-3911 #branding img {display:none} /* trips and events */
    .page-id-4106 #branding img {display:none} /* Fitness Activities*/
    .page-id-17622 #branding img {display:none} /* Sunday Brunch Menu*/
    .page-id-18327 #branding img {display:none} /* Maintenance Request */
    .page-id-18968 #branding img {display:none} /* Private Video 1 */
    .page-id-19008 #branding img {display:none} /* PVideo 1 */
    .page-id-19010 #branding img {display:none} /* PVideo 2 */
    .page-id-19012 #branding img {display:none} /* PVideo 3 */
    .page-id-19014 #branding img {display:none} /* PVideo 4 */
    .page-id-19017 #branding img {display:none} /* PVideo 5 */
    .page-id-38453 #branding img {display:none} /* child css-test */

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello,

    This is probably a cache issue… or you’ve fixed it already? From my end, the test page has no image in the header.

    Thread Starter hmabpera


    Thank you, George, for checking this out for me. When I saw your response, I tried a different web browser and I saw the same result you have here. WHEW! So I cleared more options in Google Chrome and Voila! it works. Wonderful Response here. Thanks sooo much.

    If it’s not too complicated, can you tell me briefly why the cache causes these odd behaviors.

    You can mark this as resolved from your end. 🙂 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘child css code additions not working’ is closed to new replies.