Viewing 15 replies - 1 through 15 (of 35 total)
  • Plugin Author Press Pixels

    (@presspixels)

    Hello!

    Seems I am not getting any notices of these messages, sorry for the late response! We have add this into the latest version (plus also image resizing) – so if you update to version 1.0.7 you will be all sorted out, enjoy!

    Thread Starter DHewitt

    (@dhewitt)

    Thanks Press Pixels but I updated to 1.0.7 and it did not resolve the problem.

    Any other ideas?

    Plugin Author Press Pixels

    (@presspixels)

    You see there is a conflict when selecting a home page – as WordPress has many ways of doing this – and it can also be specific to your theme – we are investigating at the moment, update should be soon ??

    Custom template home pages are *not* home pages and should check for is_front_page() and other methods other then is_home()

    if (is_home() || is_front_page())

    $home_only = get_option('sbs_just_home', 0 );
        if ( $home_only && (is_home() || is_front_page()) ) {
    		add_action( 'wp_head', array('SiteBackgroundSlider', 'setBackgroundSlider') );
    		if ( get_option( 'sbs_link', 0 ) == 1 ) {
    			add_action( 'get_template_part_content', array('SiteBackgroundSlider', 'setBackLink') );
    		}
        } else {
    		add_action( 'wp_head', array('SiteBackgroundSlider', 'setBackgroundSlider') );
    		if ( get_option( 'sbs_link', 0 ) == 1 ) {
    			add_action( 'get_template_part_content', array('SiteBackgroundSlider', 'setBackLink') );
    		}
    	}

    ^ changes to the slider !is_admin() area

    Also it’s possible that the query before the action occurs to run the slider needs a wp_reset_query(); because of bleeding information into other areas that is changed from the base query. This is a theme problem when that happens, which the wp_query could have been changed. Although looking at your code (press pixels) it looks like they’re not doing much with is_home() is_single() or any other conditionals, which unfortunately WordPress does a lot of relative things that it would be a benefit to utilize.

    Plugin Author Press Pixels

    (@presspixels)

    Actually we have tried that ?? the reason is_home is there is because of other theme users which require it – you see this is the problem and this is why we land up with multiple installations needing unique solutions.

    I have thought of a better solution, just need to find time to code it – will add an input box where you can type your home URL – and then if matched in the above conditional (rewritten) it will preform the only home page function – better and will work for everyone ??

    So… give me a bit of time will get it done ??

    Thread Starter DHewitt

    (@dhewitt)

    Frumph, I really appreciate your input but unfortunately I am a novice web designer and don’t really understand anything you said.

    PP, If you can do what you say that would be amazing. Thanks.

    hi
    this is a great plugin – but i am also having problems trying to get it to work on a specific page. When i set the page as the Front page in Admin>Settings>Reading it still does not work.

    If i dont set Hom epage only it all works fine.

    i was wondering if i could hardcode on line 118 of
    site-background-slider.php
    $home_page = get_option( ‘sbs_homepage_url’, ‘https://’.$_SERVER[‘HTTP_HOST’] );
    to
    $home_page = get_option( ‘sbs_homepage_url’, ‘https://www.site.com/splash/’%5D );

    I cant tell as for some reason i cant delete the file online or overwrite it – and i cant change the permissions for it.

    There is only one thing that the homepage option cannot do which is tell that https://www.site.com/splash is the home page. If you were to have https://splash.site.com it would work.

    The problem is not the $home_page variable in question (which you can set in the back-end administration of this plugin) it is the $_SERVER[‘REQUEST_URI’] limitation of PHP which picks up https://www.site.com/splash as a sub directory of site.com

    hi skashi
    so, if i set ‘splash’ to be the home page in wordpress settings, AND make the url for the home page https://www.site.com/, then it would work ok?

    If you want to make https://www.site.com/splash the home page of your site you need to create a subdomain on your server so that it will be (for example) https://splash.site.com and this address you would enter in the Homepage URL option in the Site Background Slider plugin admin settings.

    Hi Skashi
    sorry to repeat my self but if i set ‘splash’ to be the home page in wordpress settings, (so not https://www.site.com/splash, just https://www.site.com/) AND make the url for the home page https://www.site.com/, then it would work ok?

    tom

    Hi, I have a question, and feel free to tell me to start a new topic, but I do have one that’s about the custom template page.

    I created multiple custom pages, then activated the plugin – works like a charm. But then, when I edited the page… the plugin stopped working.

    I am a php noob, but is there anything I can try?

    @tomwgf – the plugin needs to be fixed to use the correct method of finding root. You do not need to change how your hosting works.

    @tomwgf Yes that would work fine. Try it and let me know if you are having problems.

    @frumph The plugin is not broken. It has just been updated to version 1.0.8 where it addresses the home page issue allowing you to enter the homepage url as an option in the Site Background Slider admin settings and the plugin will compare that url path with the current url path of a user navigating the site.

    Plugin Author Press Pixels

    (@presspixels)

    As to all the home page limitation and issues – this has been updated into the latest version so you can add your own home page URL for displaying background slides only on the home page.

    Due to WordPress having multiple methods for detecting the homepage and this also not being accurate as certains themes also code there own methods – this is the only way it will work for all users. Enjoy!

Viewing 15 replies - 1 through 15 (of 35 total)
  • The topic ‘[Plugin: Site Background Slider] Not working on Custom Template Home Page’ is closed to new replies.