• I am stumped. I need my Search Results page (as well as any Archives pages that pop up) to have a different type of background than the Home page. What’s the first step in doing this? I’ve searched everywhere to no avail. I’m still pretty new at WordPress so please keep that in mind.

    My Home page is using style.css, which also carries over to my Search Results and other Archive pages. This means my Home page’s background images are showing in the rest of them! I wish to have my Search and Archive pages without any images on them. Use the search box (just type in ‘virtual’) to see what I mean. Also click on the “Simcoach” link (bottom right) to view the archive page. I’ll appreciate any help. Thank you in advance!

    The site is currently under construction, so I’ve created a user name for those willing to help to view the site. Please respect my website and do not make changes to it other than for troubleshooting my problem.

    To view the site, first log in, use “tester” (without the quotation marks) as ID and password, here:
    https://vrpsych.ict.usc.edu/wp-login.php

    You will get a “no permissions” pop up, where you can now go to: https://vrpsych.ict.usc.edu/

    Please make sure to logout.

Viewing 2 replies - 1 through 2 (of 2 total)
  • WordPress adds some semantic CSS classes to the <BODY> to specifc issues like this. In search results the tag BODY will have the ‘search search-results’ classes. So you can simply create a new CSS rule:

    body.search-results { background:…; }

    Thread Starter mlopezart

    (@mlopezart)

    caugb

    Thank you for your reply. However, it is not working. I placed the following:
    body.search-results { background-image:url(‘https://vrpsych.ict.usc.edu/wp-content/LIVE_images/headers/none.jpg&#8217;); }

    “None.jpg” is exactly that, no background images. But it still shows the Home page background image (that round-cornered box). Thanks for trying though!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Change Background for Archives/Search Results pages??’ is closed to new replies.