Forum Replies Created

Viewing 15 replies - 346 through 360 (of 468 total)
  • Plugin Author Joshua David Nelson

    (@joshuadnelson)

    webbeetle,

    So long as your footer.php contains the (required) wp_footer template tag you should be fine. This plugin is theme independent.

    Hope that helps!
    Joshua

    Forum: Plugins
    In reply to: [Scripts To Footer] jQuery
    Plugin Author Joshua David Nelson

    (@joshuadnelson)

    Jairo,

    That sounds like a good plan. It seems like you have quite a few scripts that need to be in the header, and may or may not be dependent on jquery. If it turns out that the majority of your scripts are dependent on jquery, and they need to be loaded in the header, I would suggest not using this plugin.

    Instead, I would de-enqueue the scripts you want in the footer, and then re-enqueue them with the $in_footer set to true. This will place those scripts into the footer automatically. Unfortunately, this can’t be done as default for all scripts because scripts can be called from multiple places within themes and plugins, which is why this plugin disables a few hooks, forcing all scripts in the footer.

    Does that make sense? Hope that helps!

    Cheers,
    Joshua

    Forum: Plugins
    In reply to: [Scripts To Footer] jQuery
    Plugin Author Joshua David Nelson

    (@joshuadnelson)

    Jairo,

    Sounds complicated!

    I’m happy to help with getting my plugin to work and debugging any issues or conflicts that you find. It sounds like Script-to-Footer is working as designed, but you’re trying to utilize it for a very custom, specific purpose. This plugin is definitely useful, but it is also broad-stroke in its approach. Trying to narrow it onto one script over others is certainly possible with the filters and options built-in, but I would beware of “using a shotgun where a scalpel is necessary,” if that makes sense.

    That said, this support forum is really focused on the plugin functionality itself and I can’t devote much (free) time to customizing plugins for a specific site, as I’m sure you can understand. If you’d like to discuss hiring me to customize or audit your site, we can get into more specific solutions.

    Let me know if there is anything related to Scripts-to-Footer plugin in the meantime.

    Best,
    Joshua

    Forum: Plugins
    In reply to: [Scripts To Footer] jQuery
    Plugin Author Joshua David Nelson

    (@joshuadnelson)

    Ah, yes. Well, jquery is a popular script and it is often referenced by others as being dependent on it. This means that those scripts essentially piggy-back on jquery and only load after it.

    There are a multitude of places and ways to enqueue a script, and they could be from one/more plugins or your theme, so it is very hard to diagnose a solution for a specific combination of theme/plugins that may be dependent on jquery.

    My suggestion would be to either take the easier route and disable the plugin on the specific page(s) where you’re having the issue – keeping them in the header. Or, a more lengthy process would be to deactivate all your other plugins, then activate theme one-by-one and figure out where the specific script is registered, deregister it similar to above and re-register it without the jquery dependency. The latter option is not exactly standard procedure though, and could cause issues should you ever deactivate this plugin and the order gets mixed up again.

    It could also be that what you need is a plugin to minify your scripts instead of this plugin to move them to the footer.

    Hope that helps!
    Joshua

    Plugin Author Joshua David Nelson

    (@joshuadnelson)

    Bala666,

    Were you able to debug the issue? I’d like to help and, further, figure out if there is something related to my plugin I need to update to avoid further errors. I’d appreciate your follow up.

    Also, this previous support post may be helpful.

    Thanks,
    Joshua

    Plugin Author Joshua David Nelson

    (@joshuadnelson)

    This is most likely an issue with your theme or plugins. I responded to your email, but again:

    There is no reason way uninstalling this plugin would not work. Have you deleted it from your plugins folder? You should verify that it is in fact deactivated and deleted. (Go into your FTP and make sure it is not in your plugins folder).

    Also, try deactivating all your plugins and reverting to a default theme (twenty fourteen or twenty twelve theme). Then reactivate your other plugins one by one. It is likely a plugin conflict or theme error. Let me know if you have any issues after that and if you’ve discovered a plugin that Scripts-to-footer conflicts with so we can fix any issue.

    Thanks,
    Joshua

    Plugin Author Joshua David Nelson

    (@joshuadnelson)

    Andres,

    Let me know if you want to keep moving forward with a solution. I’m going to mark this post resolved.

    Thanks,
    Joshua

    Plugin Author Joshua David Nelson

    (@joshuadnelson)

    Bala666,

    I’m happy to help you resolve this issue, but it would be appreciated if you reached out for support on your own thread only and re-rated the plugin once we’ve resolved this. Your issue is likely due to another plugin or theme setting, it’s impossible for this code to still work once it’s been removed – so if you did delete it and deactivate it – AND your theme and other plugins are coded to standards – there would be no issue.

    Joshua

    Plugin Author Joshua David Nelson

    (@joshuadnelson)

    There is likely a conflict with your sites theme or other plugins going on. I’ve responded to your email with some instructions and I’ll be happy to help you resolve the issues.

    The error you are citing doesn’t occur for anyone else, there is something else going on in your theme/plugins. The support forum is the proper venue for solving issues like this, not the rating system. I’m happy to help, though.

    Forum: Plugins
    In reply to: [Scripts To Footer] jQuery
    Plugin Author Joshua David Nelson

    (@joshuadnelson)

    Jario,

    Yes, there is a built-in way to do this when you enqueue a script – by setting it dependent on another script, like jquery, it will only be loaded if jquery has been loaded.

    That said, while Scripts-to-footer should, in theory, place everything in the footer in the same order – there are plenty of scripts that actually need to be placed in the header in order for page elements or in-line scripts to work. That might be the case for your issue.

    You can either disable the plugin on the specific page that is having the issue, or you can use this tutorial to place specific scripts in the header. Just be sure you are grabbing the correct scripts and placing them in the correct order.

    Cheers,
    Joshua

    Plugin Author Joshua David Nelson

    (@joshuadnelson)

    Semagoff,

    I would really like to help you with this, but unfortunately I can’t without access to more information. If you are comfortable sending me an email with your website login I can attempt to problem solve the issue.

    If you’re not comfortable with that (totally reasonable), I would suggest using the debug mode and activate the debug log to see if there are any errors being reported when you activate the plugin. The debug log is stored in your wp-content folder (after you have updated your wp-config per the links above). If there are no error messages, then there is something else going on with your installation or theme/plugin interaction.

    Where are you hosted?

    Thanks,
    Joshua

    Plugin Author Joshua David Nelson

    (@joshuadnelson)

    Semagoff,

    Any luck? I’m not able to replicate this issue in any other site and the other instance of this error is no longer an issue either.

    Thanks,
    Joshua

    Plugin Author Joshua David Nelson

    (@joshuadnelson)

    Andres,

    You’re welcome to donate, it’s much appreciated: jdn.im/donate.

    That link is to a specific page (/fpt ?) and you should be able to use a conditional like is_page( 'fpt' ) or is_front_page() or is_page( '16' ) in place of function_exists( 'is_sabai' ) && is_sabai() above. I believe the is_sabai() function would only work on a sabai-specific page template.

    Beyond that I’m happy to help, but I’ve already gone a bit above the scope of free plugin support. These issues are not related to third-party plugins and your theme template, not the basic usage of my free plugin. If you’d like to hire me to work on your site, I’m available: joshuadnelson.com.

    Best of luck,
    Joshua

    Plugin Author Joshua David Nelson

    (@joshuadnelson)

    Andres,

    I received a reply from Kazu, the developer for your directory plugin. First, be sure to update to the newest Scripts-to-Footer plugin version, I just updated to 0.5 to include a filter you can use for this purpose (you can see more information on the main plugin page).

    Kazu suggested the following code for creating a conditional statement for his sabai directory plugin:

    if (!function_exists('is_sabai')) {
    	function is_sabai() {
    		return is_page()
    			&& isset($GLOBALS['post'])
    			&& ($slugs = get_option('sabai_sabai_page_slugs', false))
    			&& is_array($slugs[2])
    			&& in_array($GLOBALS['post']->ID, $slugs[2]);
    	}
    }

    You would place that code above in your functions.php file, then place this in there as well:

    add_filter( 'scripts_to_footer_exclude_page', 'andres_excluded_sabai' );
    function andres_excluded_sabai( $exclude_page ) {
    	if( function_exists( 'is_sabai' ) && is_sabai() ) {
    		$exclude_page = 'on'; // this turns on the "exclude" option for any sabai
    	}
    	return $exclude_page;
    }

    Please note that I don’t have any way to test Kazu’s code because I don’t have access to his plugin. In theory, this should work, but let me know if you get any error messages or have any other issues. The filter code I have tested with other conditionals in a similar fashion, so hopefully the is_sabai function works as well.

    Cheers,
    Joshua

    Plugin Author Joshua David Nelson

    (@joshuadnelson)

    Magistar,

    Glad it worked for you!

    I would not recommend moving your css files, it will in 99% of cases change the look of your site drastically, because the CSS needs to load before your HTML elements in order for the browser to know how to style them.

    It would be better to move them to a CDN or combine them all into a single file.

    Best,
    joshua

Viewing 15 replies - 346 through 360 (of 468 total)