Yurets
Forum Replies Created
-
Forum: Plugins
In reply to: [Salon Booking System] 6.3.2 version – issuessomething like this?
<?php echo do_shortcode([salon/]); ?>
@wordpresschef , yes, exactly.
Forum: Plugins
In reply to: [Salon Booking System] 6.3.2 version – issuesForum: Plugins
In reply to: [Salon Booking System] Date picker not working. Only showing input fieldI figured out the reason.
Loading of styles and scripts occurs if the content ($post->post_content) contains a shortcode ([salon/] etc.).But if the shortcode is inserted directly into the .php post/page template as
echo do_shortcode('[salon/]');
then, accordingly, styles and scripts are not loaded.
Hope developers fix this issue in the future, @wordpresschef.
——————————————————-
As a temporary solution, I suggest disabling shortcode verification in the content, but then styles and scripts are loaded on every page of the site./salon-booking-system/src/SLN/Action/InitScripts.php
line #24public function hook_enqueue_scripts() { global $post; if (!$this->isAdmin && is_a( $post, 'WP_Post' ) /* && ( has_shortcode( $post->post_content, SLN_Shortcode_Salon::NAME ) || has_shortcode( $post->post_content, SLN_Shortcode_SalonMyAccount::NAME ) || has_shortcode( $post->post_content, SLN_Shortcode_SalonCalendar::NAME ) || has_shortcode( $post->post_content, SLN_Shortcode_SalonAssistant::NAME ) || has_shortcode( $post->post_content, SLN_Shortcode_SalonServices::NAME ) )*/ ) { self::preloadScripts(); self::enqueueTwitterBootstrap(false); $this->preloadFrontendScripts(); } }
——-
- This reply was modified 3 years, 5 months ago by Yurets.
Forum: Plugins
In reply to: [Salon Booking System] Date picker not working. Only showing input fieldThe problem is here (condition)
Solving…
Forum: Plugins
In reply to: [Salon Booking System] Date picker not working. Only showing input fieldSame problem after plugin update.
As the console shows, css files and scripts are not loaded (see attaches below):I solved it.
/plugins/photo-gallery/photo-gallery.php
Just commented ob_start(); in public function init() and all works fine./** * WordPress init actions. */ public function init() { //ob_start(); $this->overview(); add_action('init', array($this, 'language_load')); add_action('init', array($this, 'create_post_types')); }