[Plugin: Gecka BgStretcher] No background setting/function under Appearance menu
-
I’m using Suffusion which does not create Background function under Appearance.
It seems the plug-in does not handle themes without that function already in place?
-
Hello yehoshanah,
Yes it does, you should have read the doc
Just add to your theme’s functions.php the following:
add_streched_background ('background=http://path-your-image')
Greetings
I am having an issue with this as well…
In the theme I use, there is no background function under appearance.
Can this be implemented without that background function under appearance?
Thank you
Hello,
As I already wrote, you have to add
add_streched_background ('background=http://path-your-image')
to your theme’s functions.php file and your done. (replace http://path-your-image with the path to your background image)
Regards
Thank you for such a fast response, and fantastic plugin, BTW.
I forgot to include a semi-colon to close the statement.
Your example should read:add_streched_background (‘background=http://path-your-image’);
Interesting now though, the stretched BG covers the other style areas of my style sheet.
Can you think of anything that may be causing this?
For the background image not to cover your content you HAVE to wrap your content in a div, give it an ID, and tell the plugin witch is the wrapper.
example:
<body> <div id="wrapper"> /* your page content*/ </div> </body>
If you use wrapper as the id, nothing else is needed., If not, tell the plugin about the wrapper ID (see the pageWrapper property here: http://gecka-apps.com/documentation/bgstretcher/)
Note that some mandatory CSS rules will get applied to the wrapper (again see http://gecka-apps.com/documentation/bgstretcher/)
Great Plugin! thanks. but how exactly insert an array of background? I didn’t find the right solution also on the doc.
is it like this in function.php:
[add_stretched_background(“background=Path to first image, path to second image”);] ??
Thanks for your help.Hello,
First you must know that the add_stretched_background function, like every other WordPress function, accepts its options as a query_string (“key=val&key2=val”) or as an array ( array(‘key’=>’val’, ‘key2’=>val) )
The documentation says, for the background option: “The background image to show, or an array of background images as full url.”
So if you want to give multiple background images to the function, you would do this:
add_stretched_background( array('background' => array('http://image1', 'http://image2', 'http://image3') );
Regards
Love this plugin! Works fine now! Struggling with two things though.
I’m trying to add multiple background images for a ‘background slideshow’, but the code I put in the functions.php
add_streched_background ('http://image1');
doesn’t seem to overrule the background I selected in the ‘WordPress Appearance -> Background’ section.And if I try the code (after changing the image URLs of course)
add_stretched_background( array('background' => array('http://image1', 'http://image2', 'http://image3') );
it gives an parse error: syntax error, unexpected ‘;’.How to get this working?
Thanks!
@ Hubrecht
test without typo error and same opened and closed (), copy and past that :
add_streched_background( array('background' => array('http://image1', 'http://image2', 'http://image3')));
That works fine here : http://www.psychotherapie-gestalt.com/
@ljvd, you’re the man! I copy pasted the code from Gecka a couple of replies ago so I supposed it would be ok, but this makes total sense. Works now!
Hi Gecka
Sorry but i don’t understand where i have to wrap in div my contenent.
in witch file?I use a Basico theme
thank’s
Hi ale_ba
In header.php add
<div id="wrapper">
after the<body>
tagIn footer.php add
</div>
before the</body>
tagHi Gecka.
in the header php file i add <div id=”wrapper”> after >body> tag and
</div> in the fooet.php before the </body> tag but the image not appear streeced.in the function.php file I add:
add_streched_background (‘background=http://www.informale.isgreat.org/wp-content/uploads/2011/03/SarmedePueblo.jpg’)
do you know why?
thank’s
Hi ale_ba,
What do you mean by “the image not appear streeced” ?
Regards.
Hi Gecka.
sorry “stretch”;
i mean that the image not fill the screen size.
please look at http://www.informale.isgreat.org/than you
- The topic ‘[Plugin: Gecka BgStretcher] No background setting/function under Appearance menu’ is closed to new replies.