joycegrace
Forum Replies Created
-
Forum: Plugins
In reply to: [Asset CleanUp: Page Speed Booster] Support for taxonomy term pages?I also need this feature! Just giving it a vote!
- This reply was modified 9 years, 3 months ago by joycegrace.
Forum: Plugins
In reply to: [Asset CleanUp: Page Speed Booster] ‘Remove from this page only’Just for the record, I totally did not get this either. I think a more obvious label would be something like “load only on this page” or something like that.
Thank you, and sorry I missed this.
thanks a bunch. I’ll look into it. I was hoping for a function.php copy/paste code solution, if there is one.
Forum: Plugins
In reply to: [Theme My Login] Load Theme My Login resources only on pages that need them?Thank you so much. I’m not much of a coder, so I’m curious, how would we do this if we wanted to use some simple conditional logic, like !is_home() for instance, or by specifying IDs of pages that shouldn’t use them?
Hi Sridhar, thank you so much for your help.
However, this does not seem to work for me. I also tried
is_home()andif ( is_front_page() && is_home() )from conditional tags instructions.When I view the source of a page that does not have the slider on it, I see this:
<style type="text/css">.slide-excerpt { width: 0%; } .slide-excerpt { bottom: 0; } .slide-excerpt { right: 0; } .flexslider { max-width: 1080px; max-height: 330px; } .slide-image { max-height: 330px; }</style>And this
<script type='text/javascript'>jQuery(document).ready(function($) {$(".flexslider").flexslider({controlsContainer: "#genesis-responsive-slider",animation: "slide",directionNav: 1,controlNav: 0,animationDuration: 2000,slideshowSpeed: 8000 }); });</script>I also tried an icognito window and cleared cache from using Autoptimize (and unchecked to optimize css and js in those plugin settings).
Am I doing something wrong?
E.g. view-source:http://www.executivesuite.ca/hot-desks-hourly-boardroom-vancouver/
Your code is currently in my functions.php file on the above site.
Thank you so much Tobias! What a fast reply!
For anyone who is also not comfortable with code and only wants to do this on pages, not posts, this is what I used:
/** * Only load TablePress CSS in known pages or posts. */ add_filter( 'tablepress_use_default_css', 'joycegrace_tablepress_css_conditional_load' ); add_filter( 'tablepress_custom_css_url', 'joycegrace_tablepress_css_conditional_load' ); function joycegrace_tablepress_css_conditional_load( $load ) { if ( ! is_page( array( 'page-slug-1', 'page-slug 3', ) ) ) { $load = false; } return $load; }Forum: Plugins
In reply to: [Simple Share Buttons Adder] Performance concernsSure that could work, but not sure how to do it – any help?
Or are you suggesting to use the shortcode option?
As you’ve noted above, telling the plugin settings where you want to turn ‘off’ the share buttons doesn’t remove the scripts from the site’s pages.
But there are some basic instances where we’d want all posts and pages to have them, which will be the ‘most likely’ case. So that’s why I thought only if we don’t want them on a page, like the home page for instance, it would be better to deregister them in those cases?
Or am I not understanding?
Forum: Plugins
In reply to: [Fast Social Sharing Buttons] How to remove buttons from homepage?It would be great to know how to hide from any page, even with a shortcode or functions.php code snippet
Forum: Plugins
In reply to: [Simple Share Buttons Adder] Performance concernsJust read this on another plugin if it helps: http://www.wpbeginner.com/floating-social-bar/ – but haven’t tried it out yet.
Forum: Plugins
In reply to: [Simple Share Buttons Adder] Performance concernsCan someone provide a solution for a code snippet that would deregister the script and styles on pages that don’t need it? For pasting into functions.php I mean?
Here is a sample but I don’t think I’ve got this right, and not sure how to do it for the multiple scripts in this plugin, which are problematic, as noted above
/** * Remove scripts + styles unless we're on the page * */ add_action( 'wp_enqueue_scripts', 'ac_remove_scripts' ); function ac_remove_scripts() { if ( is_home() ) { wp_deregister_style( 'not-sure-what-goes-here' ); wp_deregister_script( 'not-sure-what-goes-here' ); } }Here are references for what I’m trying to do:
http://inspirationalpixels.com/tutorials/remove-plugin-scripts-wordpress
https://www.fldtrace.com/load-javascript-on-specific-pages-in-wordpress
https://css-tricks.com/taking-control-cssjs-wordpress-plugins-load/Any help here would be greatly appreciated.
Hi @paz2222
Under Insights > Advanced tab in the “Custom code” field I entered
__gaTracker('require', 'autotrack');And that seems to work ok for me. It’s tracking if I set up events.
You may want to modify that line to include only parts of autotrack you want to load, but I’ll leave that up to you and others who want to do this to figure that part out as it’s unrelated here.
- This reply was modified 9 years, 7 months ago by joycegrace.
- This reply was modified 9 years, 7 months ago by joycegrace.
Forum: Plugins
In reply to: [Redirection] Wild Card Helpme too.
From this post: https://wordpress.org/support/topic/redirect-all-link-after-xxx/#post-8361070 I wrote:
I also would like to know just a simple solution to match all of say anything after /tag/ to just go to one single URL that is not based on a number.
So for example anything with /tag/ in its url will go to
/ (home page)
or
/something-something
I’m not that advanced at coding and understanding this stuff so any community help here would be great.
Forum: Plugins
In reply to: [Redirection] Redirect all link after /XXX/…These links may help
https://wordpress.org/support/topic/supporting-regular-expression-re-replacement-parameters/
He gives examples on this page: https://urbangiraffe.com/plugins/redirection/
He suggests consulting a regular expression website for more info.
I also would like to know just a simple solution to match all of say anything after /tag/ to just go to one single URL that is not based on a number.
So for example anything with /tag/ in its url will go to
/ (home page)
or
/something-something
I’m not that advanced at coding and understanding this stuff so any community help here would be great.
Forum: Plugins
In reply to: [Genesis Slide-in Widget] Many issuesCurious if this happens if you disable all the styles?