Responsive Support
-
Hi Konstantinos,
How can I add a responsive support for the images when scaled to mobile device?
Cheers,
-
The images should be responsive, do you have a live url to check that?
Yes, here it is http://themes.sanjaykhemlani.com/rbp
btw, how can I change the speed of transition? Can’t find it on plugin editor.
Thanks!
Found it!
For anyone that’s looking, it’s on full-screen-background-images/plugin.php
It’s responsive for me. I resize the window, and the image is being resized accordingly. Isn’t that working fo you?
No it isn’t.
Another thing, how can I exclude the homepage? Basically, the Client wanted the homepage to be static images, and the rest to have a slideshow background. Any ideas? Thanks in advance!
Weird, your background is responsive to me.
For homepage exclusion, just add a return statement in plugin_init function in plugin.php file. So, plugin_init would start as:
public function plugin_init($content) { if(is_home()) return;Hi Konstantinos,
Is this the entire code? I’ve try it but didn’t worked. Sorry, not really a good in programming 🙂
Sorry for that. Insert code:
if(is_home()) return;
just after the line:
public function plugin_init($content) {Hi Konstantinos,
What about exclude other pages except the homepage? Just wanted to give options.
Appreciate the support!
Hi Again,
sorry to bug you with this, but can’t seem to get this to work. I added the code like this `public function plugin_init($content) {
//only in homepage
if(is_home())
return;`
But the other pages are still showing the slideshow, any ideas?If you exclude only home page (with is_homepage function), then all other pages will show the slideshow. Which pages do you want to exclude?
I want the image slideshow only in the homepage, all the other pages will have a black background.
How do I put the is_home function in the plugin file?
Appreciate all the answers 🙂
If you want to show the slideshow only in homepage, then you have to insert code:
if(!is_home()) return;
just after the line:
public function plugin_init($content) {I assume the topic is solved.
The topic ‘Responsive Support’ is closed to new replies.