Plugin Author
Vova
(@gn_themes)
Hi,
I can see that the shortcodes is working properly on your pages – http://clip2net.com/s/62bMye
Plugin Author
Vova
(@gn_themes)
Oh sorry, I doesn’t understood you correctly at first time.
As I can see, your theme uses AJAX to load page content. So, in this case you just need to enqueue assets of my plugin manually on all your pages.
Try to put this code to your theme’s functions.php file
function gndev_force_su_assets() {
if ( !is_front_page() || !function_exists( 'su_query_asset' ) ) return;
su_query_asset( 'css', 'su-content-shortcodes' );
su_query_asset( 'css', 'su-box-shortcodes' );
}
add_action( 'wp_head', 'gndev_force_su_assets', 99 );
Know i havent the icons of button, services…
Plugin Author
Vova
(@gn_themes)
You can add su_query_asset( 'css', 'font-awesome' ); to enable icons.
If “Compatibility Mode” on the check, nothing works is this:
[heading] Hello [/ heading]
[Service title = “I love this (heart)” icon = “icon: exclamation-sign” icon_color = “# d60b1b”] This is the best shortcode [/ services]
[button url = “http://ifun.besaba.com/my-bugs” style = “3d” icon = “icon: thumbs-up” icon_color = “# 51f50a”] the good page [/ button]
[button url = “# http://ifun.besaba.com/ news” style = “3d” icon = “icon: thumbs-down” icon_color = “# f61818”] the bad page [/ button]
[button url = “http://wpskinslab.com/wp-content/uploads/downloads/2013/10/greptem2.zip” target = “blank” background = “# 000000” icon = “icon: download-alt”] download my theme [/ button]
Plugin Author
Vova
(@gn_themes)
I know about it =)
Did you read the article about this option?
And I forgot to tell you what you gave us did not work:
“You can add su_query_asset (‘css’, ‘font-awesome’) to enable icons.”
Plugin Author
Vova
(@gn_themes)
Are you sure that you do this right?
There is a complete code
function gndev_force_su_assets() {
if ( !function_exists( 'su_query_asset' ) ) return;
su_query_asset( 'css', 'font-awesome' );
su_query_asset( 'css', 'su-content-shortcodes' );
su_query_asset( 'css', 'su-box-shortcodes' );
}
add_action( 'wp_head', 'gndev_force_su_assets', 99 );
Waht is this article ?
Yes i’m sure the icons don’t work.
For the icons it’s ok in template of classic page but not in the template of blogs except unless the compatibility mode is enabled, in this case everything is reversed.
I use Noname Theme (ajax) and I add
function gndev_force_su_assets() {
if ( !function_exists( 'su_query_asset' ) ) return;
su_query_asset( 'css', 'font-awesome' );
su_query_asset( 'css', 'su-content-shortcodes' );
su_query_asset( 'css', 'su-box-shortcodes' );
}
add_action( 'wp_head', 'gndev_force_su_assets', 99 );
icons and spoilers is ok but when I Click on it not work.
why ?
( test in Green link )