outofhouse
Forum Replies Created
-
Forum: Plugins
In reply to: [NP Quote Request for WooCommerce] Empty mini/side Cart in Elementor PROYes – that has fixed the issue thanks!
Forum: Plugins
In reply to: [WooCommerce] Products are changed to “Out of Stock” accidentallyHi @2bearstudio
My client seems to be having a similar issue – it happens when the core WordPress plugin files are updated. I wonder whether there was a way we could share a list of our plugins to see if there are any similarities in our setups..?
For anyone still looking to utilise an SEO optimiser with Elementor, this plugin could be a good fit: https://rankmath.com/blog/elementor-seo/
Sorry – that wasn’t meant to be a sarcastic thanks! Cheers for having a look at this.
thanks
Hi
I couldn’t see any settings in JetPack to avoid this so have disabled it (I did have to switch off JetPack’s social icons to stop them displaying in the excerpt). I use another plugin (Essential Grid) to display grids of posts on this site and JetPack wasn’t injecting anything after the excerpts for these grids.
It seems the templating option I used to design around your plugin was allowing JetPack to add share buttons and extra info (although I haven’t checked if it’s doing the same for your standard widgets and shortcodes that don’t use custom templating. The only way to stop it was to disable Jet pack.
Might be worth having a look – I presume it should be an easy enough thing to recreate if there is an issue there. It would be nice to use JetPack at some point in the future as I was using it’s security and backup features.
Thanks
RobOk – SOLVED – seems like Jetpack was adding this to any excerpts. Have disabled it and all is well again.
Update – I have tried turning other plugins off but this makes no difference.
Sorry here’s the full functions.php file code (didn’t swipe it all first time round!)
/**Add related posts section**/ add_filter( 'the_content', 'add_related_posts_after_post_content' ); function add_related_posts_after_post_content( $content ) { //check if it's a single post page. if ( is_single() ) { // check if we're inside the main loop if ( in_the_loop() && is_main_query() ) { // add your own attributes here (between the brackets [ ... ]) $shortcode = '[related_posts_by_tax posts_per_page="3" title="Related Articles" image_size="large" format="thumbnail_excerpt"]'; // add the shortcode after the content $content = $content . $shortcode; } } return $content; } /*hook in a new related posts grid*/ add_filter( 'related_posts_by_taxonomy_template', 'rpbt_thumbnail_exerpt_format_template', 10, 3 ); // Return the right template for the thumbnail_excerpt format function rpbt_thumbnail_exerpt_format_template( $template, $type, $format ) { if ( isset( $format ) && ( 'thumbnail_excerpt' === $format ) ) { return 'related-posts-thumbnail-excerpts.php'; } return $template; } // Create new format thumbnail_excerpt for use in widget and shortcode add_action( 'wp_loaded', 'rpbt_thumbnail_excerpt_format', 11 ); function rpbt_thumbnail_excerpt_format() { if ( !class_exists( 'Related_Posts_By_Taxonomy_Defaults' ) ) { return; } $defaults = Related_Posts_By_Taxonomy_Defaults::get_instance(); // Add the new format . $defaults->formats['thumbnail_excerpt'] = __( 'Thumbnail with excerpt' ); } // Return posts with post thumbnails for the thumbnail_excerpt format. add_filter( 'related_posts_by_taxonomy_shortcode_atts', 'rpbt_thumbnail_exerpt_args' ); // shortcode add_filter( 'related_posts_by_taxonomy_widget_args', 'rpbt_thumbnail_exerpt_args' ); // widget function rpbt_thumbnail_exerpt_args( $args ) { if ( 'thumbnail_excerpt' === $args['format'] ) { $args['post_thumbnail'] = true; } return $args; }
Forum: Plugins
In reply to: [Ultimate Posts Widget] hide current postIt would be fairly easy for the author to add this functionality and it would really make the plugin a lot better.
If you don’t mind hacking the plugin, you could change the code in ultimate-posts-widget.php
Add an extra array in the section starting at line 167.
The full section looks like this:
$args = array( 'posts_per_page' => $number, 'order' => $order, 'orderby' => $orderby, 'category__in' => $cats, 'tag__in' => $tags, 'post_type' => $types, 'post__not_in' => array($post->ID) );
- This reply was modified 7 years, 8 months ago by outofhouse.
Forum: Plugins
In reply to: [Advanced AJAX Product Filters] Classes structureAh – great. I didn’t realise you’d set it up to be so easily child themed like WooThemes!
Thanks!
Forum: Plugins
In reply to: [Advanced AJAX Product Filters] Classes structureI’m wanting to display the widget as inline-block. I can do it by adding a div at the beginning of the widget_start.php and a closing div at the end of the widget_end.php. I want to do inline-block as it’s easier to make it all fluid within my theme…
You can see here what I’m doing: https://eureka-ski.ooh-websites.co.uk/properties/
Anyway, just thought it would be a great addition if the entire widget had a class assigned to it…
Forum: Plugins
In reply to: [Advanced AJAX Product Filters] Slider RangeOk – thanks. I think people would love that functionality (even if it was a paid-for add-on!). I’m currently creating an apartment booking site so sliders to control number of guests, bedrooms required, distance from town etc. would really improve the filtering…
Forum: Plugins
In reply to: [Beautiful taxonomy filters] Apply Filters > HEJ V?RLDENYes – thanks. Sorry for lack of reply (been away for a quick break!)…