• Resolved andi77cip

    (@andi77cip)


    I have read many posts for other themes, and I’m not sure if this is theme specific or not.
    I don’t know how to write code, and am apprehensive to change it based on someone else’s questions.

    Basically, I want my home page to display a background image, but not the other pages.
    I can’t change this in page attributes, as this theme doesn’t give me the option to edit the home/front page as a page (it’s not listed).
    Snowfall theme.
    My site is not live yet..
    ANY help is greatly appreciated.

Viewing 10 replies - 16 through 25 (of 25 total)
  • Thread Starter andi77cip

    (@andi77cip)

    When I ‘visit the site’ it displays exactly as it did before I added that.. but I have opened it on my phone and see just the white page.
    I guess I will try deleting what I pasted..?

    Thread Starter andi77cip

    (@andi77cip)

    That didn’t seem to work either. Still white.
    I literally just took out exactly what I put in..
    I thought I was on a roll for a newbie, but maybe I’m not cut out for this stuff ??

    Maybe you should try disabling the Ultimate Under Construction plugin for now from the plugin list in the dashboard as it is breaking your site.

    Maybe you should try disabling the Ultimate Under Construction plugin for now from the plugin list in the dashboard as it is breaking your site.

    Thread Starter andi77cip

    (@andi77cip)

    See. So simple. Done, and fixed.

    Amazing how easy things are when you know what you’re doing!!

    This is the URL of your stylesheet:

    https://www.coreintentions.com/wp-content/themes/snowfall/style.css?ver=4.5.2

    Can you please add the CSS code that I gave you earlier to the bottom of style.css and I’ll check if it gets updated. Did you install any caching plugins? If yes, please clear the cache after updating the file.

    Thread Starter andi77cip

    (@andi77cip)

    Bryan, you are AMAZING.

    Ok. I have to admit.
    I was in the wrong place.
    My dashboard has an ‘editor’ and an ‘edit css’ – I was in the editor.
    Now the info is pasted in the edit css and it worked!! (imagine that, putting it in the right place)!

    So.. it’s actually still pasted into the bottom of the editor styles css, should I leave it alone? or take it out? or maybe it has to be in both places??

    the exact picture that I want (not repeating) is https://www.coreintentions.com/wp-content/uploads/2016/05/Sq-Town.jpg

    .. inside the parenthesis after URL i would just add this instead of the logo..? Like this?:

    body.home{background: url(‘https://www.coreintentions.com/wp-content/uploads/2016/05/Sq-Town.jpg’);}

    Thread Starter andi77cip

    (@andi77cip)

    It worked!
    It’s tiled/repeating.. but it’s there!!
    And not on any other page!
    I feel like a kid in a candy shop!
    If you ever need a Pilates class, I owe ya!!

    Is there a part of that code that I can delete for the picture to only occur once in the center of the page?

    Thread Starter andi77cip

    (@andi77cip)

    I am a HUGE pain in the ass. Don’t worry. I know that.
    I just realized it would look best centered and repeating stacked vertically, but not horizontally.
    I know I can do that when it’s built into the theme.. can that work here as well?

    You can take it out and use the edit css moving forward.

    You got the url placed right. To make the background non-repeating, use this CSS:

    body.home{background: url('https://www.coreintentions.com/wp-content/uploads/2016/05/Sq-Town.jpg') no-repeat scroll 50% 50%/cover;}

    50% 50% – vertical and horizontal position
    cover – makes the image full width

    I think you might want to get an image with a better quality as it gets blurry when made into full width. ??

Viewing 10 replies - 16 through 25 (of 25 total)
  • The topic ‘Background Image to Homepage ONLY’ is closed to new replies.