>>Sara<<
Forum Replies Created
-
Forum: Hacks
In reply to: Call a plugin with a shortcodeHey guys thanks a lot for your advices and suggestions.
CSS was really my last-resort cause my theme is responsive. Playing around with PHP instead I found solution that is it very effective for me. Since that the plugin already uses a shortcode to call the “follow button” I mobbed the monarch.php file, copying that function and editing it to my purpose to call the “share buttons” with a custom shortcode:
Under this code that create a shortcode for “follow btn”
add_shortcode( 'et_social_follow', array( $this, 'display_shortcode' ) );
I placed this:
add_shortcode( 'et_social_share', array( $this, 'display_mine' ) );
then I added the function related:
function display_mine() { $monarch_options = $this->monarch_options; return $this->generate_inline_icons( 'et_social_inline_top' ); }
..and works great!
Hope someone can take benefit from this. Thanks again!Forum: Plugins
In reply to: [Top 10 - WordPress Popular posts by WebberZone] Excerpt Help Please!I should put this code somewhere inside your plugin php page to tell to TOP10 to use this excerpt instead of the default wordpress excerpt..
Forum: Plugins
In reply to: [Top 10 - WordPress Popular posts by WebberZone] Excerpt Help Please!Hey thanks for your answer! Where I have to put this code?
Forum: Hacks
In reply to: Call a plugin with a shortcodeWell yes Monarch provide two set of buttons, share and follow for obvious reasons. The problem is that the shortcodes only controls follow buttons, but I need them for share the post.. :/
Forum: Plugins
In reply to: Please help me with a custom pluginAny idea?
Hey thank you for your time! Sorry but I’m a newbie, I need more help please.
Where I have to place this code:
jQuery('.my-custom-class').on('click', function (event) { jQuery('#popmake-123').popmake('open'); });
and what I need to write instead of “my-custom-class”?
That code is enough or I have to do something else?
Please act like if I never hear before about jQuery ??
Thanks a lot