Changing background of slider
-
Hey Weblizar,
I’m trying to change the background image of the slider but I can’t find out where to do that.
Can you help?
-
Hey there cfile2.sk,
Hope you’re well today!
I checked in theme options and couldn’t find anything. Not sure if this is the best solution but you can change it by modifying home-slider.php.
I strongly suggest not editing core theme files but rather making a copy in your child theme and make changes there.
Once you do that first add background image to images folder which is located in /wp-content/themes/green-lantern/images/. After that open home-slider.php and go to line 6, it looks like this:
<img src="<?php echo GL_TEMPLATE_DIR_URI; ?>/images/slide1-bg.jpg" alt="rev-full1" data-fullwidthcentering="on">Replace the slide1-bg.jpg with the image you uploaded to your images folder.
This should change the background of the slider.Hope this helps, have a great weekend π
Cheers,
Bojan@cfile2.sk: Changes must be done with child-theme only π
@bojan : Thank you very much π
Happy week end π
I’m trying to find the background image but I can’t find out where to find it.
cause i want the same background image to my tamplate that i will link in my website theme.
Can you help?Hey there @rap2kin, hope you’re well today!
Sure thing, I’d like to help. I’m just not sure which background image are you referring to?
Would you mind posting link of your site so I can take a look? Additionally you could post a screenshot as well explaining what you’re looking to do.
Looking forward for your response π
Best regards,
Bojanokey so where can i send u the screenshot to show u that??? cause here noway to post a images .am working in localhost wamp server ,no link upload yet.
help please…thx
Hey again rap2kin,
You can use free programs such as this one here. It allows you to take screenshot and upload them to screencast.com like this http://screencast.com/t/cxthklKY.
Please let me know if this helps π
Cheers,
Bojanthx check it out http://www.screencast.com/t/nNBjxvjHguUF and let me know …what should i do???… thx
Hey there rap2kin,
Thanks for the screenshot. The image is located in /wp-content/themes/green-lantern/images/p5.png.
You can change the image there but I guess your changes will be lost once you update the theme.
I believe better way to do this would be to use some custom CSS to handle it. You can try adding the following CSS code in the style.css file of your child theme or if your theme doesn’t have custom CSS tab add it in your site using the following plugin:
http://wordpress.org/plugins/simple-custom-css
#bgpattern-p5 { background: url("your_image_URL"); }Please let me know if this helps π
Best regards,
Bojanthanks @bojan : Thank you very much but i got more question am coming to u later …thx
Hey again rap2kin,
Glad that helped π Please let me know if you have additional questions π
Cheers,
Bojan
The topic ‘Changing background of slider’ is closed to new replies.
