timdenty
Forum Replies Created
-
Thanks for your quick reply. I can confirm this fixes the issue ??
Forum: Plugins
In reply to: [Glossary] Glossary index search – prev/next navThanks for the reply. The update fixes the issue ??
Forum: Plugins
In reply to: [WooCommerce] Plugin conflictUpdate – ACF patched this yesterday.
As you were.
Thanks for that. Yes it works, but only once I specify the ‘data-micromodal-close’ attribute explicitly in the array.
Many thanks
We’re using the free version
Ah. Perfect, thanks
Forum: Plugins
In reply to: [Advanced Post List] Plugin conflictGreat – email sent
Forum: Plugins
In reply to: [Advanced Post List] Plugin conflictI’ve flushed the W3TC caches, and ensured the browser isn’t caching – but the same issue occurs.
Is there any other info I can give you which may be helpful?
No unfortunately, nothing inputted to the custom widget via the layout builder is outputted on the frontend.
The ACF widget fields show ok within the layout builder in wp-admin, but do not save their values. On saving the page, they appear blank again.
I’ve read a few other similar threads on both the SiteOrigin & ACF forums and have yet to find any robust solution.
Perhaps I need to rethink my approach here – integration between these two plugins would be great in the future though.
Hi Alex – It is a completely custom widget, using the WP_Widget class.
<?php // Test Custom Widget class sales_widget extends WP_Widget { function __construct() { parent::__construct( // Base ID of your widget 'sales_widget', // Widget name will appear in UI __('Custom Sales Widget', 'sales_widget_domain'), // Widget description array( 'description' => __( 'Displays the sales button', 'sales_widget_domain' ), ) ); } // Create widget front-end public function widget( $args, $instance ) { $title = apply_filters( 'widget_title', $instance['title'] ); // before and after widget arguments are defined by themes echo $args['before_widget']; if ( ! empty( $title ) ) echo $args['before_title'] . $title . $args['after_title']; // Run the code and display the output echo ' <div class="box_cta"> <h2>'. get_field('cta_title', 'widget_' . $args['widget_id']) .'</h2> <p><a href="#" class="cta cta_big">'. get_field('cta_button_text', 'widget_' . $args['widget_id']) .'<i class="fa fa-chevron-right"></i></a></p> </div> '; echo $args['after_widget']; } // Widget Backend public function form( $instance ) { if (isset($instance[ 'title' ])) { $title = $instance[ 'title' ]; } else { $title = __( 'New title', 'sales_widget_domain' ); } // Widget admin form ?> <p> <label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Title:' ); ?></label> <input class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" type="text" value="<?php echo esc_attr( $title ); ?>" /> </p> <?php } // Updating widget replacing old instances with new public function update( $new_instance, $old_instance ) { $instance = array(); $instance['title'] = ( ! empty( $new_instance['title'] ) ) ? strip_tags( $new_instance['title'] ) : ''; return $instance; } } // Class sales_widget ends here // Register and load the widget function sales_load_widget() { register_widget( 'sales_widget' ); } add_action( 'widgets_init', 'sales_load_widget' ); ?>
Forum: Plugins
In reply to: [Disqus Comment System] Displaying comments on a new test site.Forgot to mention, the default WP comments are displaying fine on the test site.
This is my shortcode to insert the gallery:
[sG_thumbsSolo id=6]
This is the shortcode to link to a larger image:
[scrollGallery thumblink="/demo/wp-content/gallery/case-study-jubilee/hull.jpg" thumblink_target="_blank"]
I’ve tried adding a gallery id to the link shortcode, but it doesn’t seem to have any effect.
Thanks for that – I’ve experimented with a few shortcode variations around the gallery id, and looked into the album idea but no success.
Interestingly, the demo page containing two galleries uses iframes for each gallery – perhaps because of the same issue.