Using the Theme's Shortcodes?
-
Is it possible to coerce TablePress to parse a theme’s shortcodes?
I’m using the Inovado theme and would like to use the tooltips shortcode and the icons shortcode to insert an image that will make a “bubble” that can popup when the onmouseover event is triggered.
TIA,
Eric P.
-
Hi,
thanks for your question!
If the theme’s Shortcodes use the regular WordPress Shortcode API, they will be supported by TablePress out of the box.
However, for Shortcodes that add JavaScript code to the page (which I assume this Tooltip Shortcode does), it might be necessary to turn off table output caching in TablePress by extending the table Shortcode to[table id=123 cache_table_output=false /]
Regards,
TobiasThanks, Tobias:
But that did not work – The shortcode still appears [unparsed] in the HTML output.
Ideas? Suggestions?
Eric P.
Hi Eric,
my assumption here is that those Shortcodes don’t use the regular WordPress Shortcode API then, but a custom implementations (e.g. based on custom regular expressions).
Unfortunately, as this is a premium theme, I can’t check the code ?? So, can you maybe contact the theme support and ask whether they use the Shortcode API (or just search for theadd_shortcode
function in the theme PHP code yourself).Regards,
TobiasThanks, Tobias:
I searched the theme directory and found sixty-eight occurences of the add_shortcode function call:
[root@www ~]# cd /var/www/vhosts/rocket-powered.com/httpdocs/wordpress_3/wp-content/themes/inovado [root@www inovado]# grep -r add_shortcode * framework/inc/meta-box/inc/helpers.php:add_shortcode( 'rwmb_meta', 'rwmb_meta_shortcode' ); framework/inc/shortcodes.php:add_shortcode('map', 'minti_map'); framework/inc/shortcodes.php:add_shortcode( 'tabgroup', 'minti_tabgroup' ); framework/inc/shortcodes.php:add_shortcode( 'tab', 'minti_tab' ); framework/inc/shortcodes.php:add_shortcode('portfolio', 'minti_portfolio'); framework/inc/shortcodes.php:add_shortcode('bloglist', 'minti_bloglist'); framework/inc/shortcodes.php:add_shortcode('blog', 'minti_blog'); framework/inc/shortcodes.php: add_shortcode('accordion', 'minti_accordion'); framework/inc/shortcodes.php: add_shortcode('alert', 'minti_alert'); framework/inc/shortcodes.php: add_shortcode('button', 'minti_buttons'); framework/inc/shortcodes.php: add_shortcode('teaserbox', 'minti_teaserbox'); framework/inc/shortcodes.php: add_shortcode('teaser', 'minti_teaser'); framework/inc/shortcodes.php: add_shortcode('callout', 'minti_callout'); framework/inc/shortcodes.php: add_shortcode('box', 'minti_box'); framework/inc/shortcodes.php: add_shortcode('googlefont', 'minti_googlefont'); framework/inc/shortcodes.php: add_shortcode('br', 'minti_br'); framework/inc/shortcodes.php: add_shortcode('clear', 'minti_clear'); framework/inc/shortcodes.php: add_shortcode('gap', 'minti_gap'); framework/inc/shortcodes.php: add_shortcode('hr', 'minti_hr'); framework/inc/shortcodes.php: add_shortcode('one_third', 'minti_one_third'); framework/inc/shortcodes.php: add_shortcode('one_third_last', 'minti_one_third_last'); framework/inc/shortcodes.php: add_shortcode('two_third', 'minti_two_third'); framework/inc/shortcodes.php: add_shortcode('two_third_last', 'minti_two_third_last'); framework/inc/shortcodes.php: add_shortcode('one_half', 'minti_one_half'); framework/inc/shortcodes.php: add_shortcode('one_half_last', 'minti_one_half_last'); framework/inc/shortcodes.php: add_shortcode('one_fourth', 'minti_one_fourth'); framework/inc/shortcodes.php: add_shortcode('one_fourth_last', 'minti_one_fourth_last'); framework/inc/shortcodes.php: add_shortcode('three_fourth', 'minti_three_fourth'); framework/inc/shortcodes.php: add_shortcode('three_fourth_last', 'minti_three_fourth_last'); framework/inc/shortcodes.php: add_shortcode('one_fifth', 'minti_one_fifth'); framework/inc/shortcodes.php: add_shortcode('one_fifth_last', 'minti_one_fifth_last'); framework/inc/shortcodes.php: add_shortcode('two_fifth', 'minti_two_fifth'); framework/inc/shortcodes.php: add_shortcode('two_fifth_last', 'minti_two_fifth_last'); framework/inc/shortcodes.php: add_shortcode('three_fifth', 'minti_three_fifth'); framework/inc/shortcodes.php: add_shortcode('three_fifth_last', 'minti_three_fifth_last'); framework/inc/shortcodes.php: add_shortcode('four_fifth', 'minti_four_fifth'); framework/inc/shortcodes.php: add_shortcode('four_fifth_last', 'minti_four_fifth_last'); framework/inc/shortcodes.php: add_shortcode('one_sixth', 'minti_one_sixth'); framework/inc/shortcodes.php: add_shortcode('one_sixth_last', 'minti_one_sixth_last'); framework/inc/shortcodes.php: add_shortcode('five_sixth', 'minti_five_sixth'); framework/inc/shortcodes.php: add_shortcode('five_sixth_last', 'minti_five_sixth_last'); framework/inc/shortcodes.php: add_shortcode('dropcap', 'minti_dropcap'); framework/inc/shortcodes.php: add_shortcode('video', 'minti_video'); framework/inc/shortcodes.php: add_shortcode('iconbox', 'minti_iconbox'); framework/inc/shortcodes.php: add_shortcode('icon', 'minti_icon'); framework/inc/shortcodes.php: add_shortcode('mini-icon', 'minti_miniicon'); framework/inc/shortcodes.php: add_shortcode('retinaicon', 'minti_retinaicon'); framework/inc/shortcodes.php: add_shortcode('retinaiconbox', 'minti_retinaiconbox'); framework/inc/shortcodes.php: add_shortcode( 'gal', 'minti_gallery' ); framework/inc/shortcodes.php: add_shortcode('list', 'minti_list'); framework/inc/shortcodes.php: add_shortcode('list_item', 'minti_item'); framework/inc/shortcodes.php: add_shortcode('member', 'minti_member'); framework/inc/shortcodes.php: add_shortcode('skill', 'minti_skill'); framework/inc/shortcodes.php: add_shortcode('plan', 'minti_plan'); framework/inc/shortcodes.php: add_shortcode('pricing-table', 'minti_pricing'); framework/inc/shortcodes.php: add_shortcode('blockquote', 'minti_blockquote'); framework/inc/shortcodes.php: add_shortcode('pullquote', 'minti_pullquote'); framework/inc/shortcodes.php: add_shortcode('responsive', 'minti_responsive'); framework/inc/shortcodes.php: add_shortcode('visibility', 'minti_responsivevisibility'); framework/inc/shortcodes.php: add_shortcode('section', 'minti_section'); framework/inc/shortcodes.php: add_shortcode('social', 'minti_social'); framework/inc/shortcodes.php: add_shortcode('custom_table', 'minti_table'); framework/inc/shortcodes.php: add_shortcode('testimonial', 'minti_testimonial'); framework/inc/shortcodes.php: add_shortcode('toggle', 'minti_toggle'); framework/inc/shortcodes.php: add_shortcode('tooltip', 'minti_tooltip'); framework/inc/shortcodes.php: add_shortcode('highlight', 'minti_highlight'); framework/inc/shortcodes.php: add_shortcode('separator', 'minti_separator'); framework/inc/shortcodes.php: add_shortcode('tagline', 'minti_tagline');
Eric P.
Hi,
wow, that’s a lot of Shortcodes for a theme…
Is the one that you want to use in that list?Are you maybe using any other caching on the site that might prevent the table from updating?
Regards,
TobiasYeah, Inovado has a crazy number of shortcodes!
The two that I’d like to use inside of TablePress are
mini-icon
andtooltip
. Both are in the list (above).I don’t believe that there’s any kind of caching going on (that would prevent parsing shortcodes). e.g., I’m able to embed TablePress tables inside of Inovado’s tabs but I’m not able to embed Inovado shortcodes inside of a TablePress table. Is there something specific that I should check?
Thanks, Tobias!
Eric P.
Hi,
that’s really strange then, and I don’t really have a clue why this is not working.
TablePress is using the regular WordPress function to evaluate Shortcodes, so I can only assume that the theme’s Shortcodes are not registered somehow…I can offer to take a direct look at this on your site, if you want. For that, could you please create a temporary admin account for me and send me the details via email (the address is in the main plugin file “tablepress.php”)? That way, I can investigate this directly and maybe I can find something.
Regards,
TobiasThanks, Tobias:
At the moment I’m very busy and I’m not able to grant access to the domain’s DocumentRoot. But I can share the Inovado theme with you via Google Docs. Would that be good enough?
Thanks, Tobias!
Eric P.
Hi Eric,
I don’t really need access to the domain’s DocumentRoot, but just a temporary admin account in WordPress, which doesn’t take long to create.
Me testing with the theme on my dev site is not really feasible, as that would take much longer (I’m busy, too ?? ) and as it would be a different setting so that other issues might not be detectable.
Regards,
TobiasMe testing with the theme on my dev site is not really feasible, as that would take much longer (I’m busy, too ?? )
Oh – I misunderstood! I thought that you’d want to look through the Theme’s code!
I don’t really need access to the domain’s DocumentRoot, but just a temporary admin account in WordPress, which doesn’t take long to create.
Oh – I misunderstood! I thought that you wanted shell/login access to the server!
I’ve created an admin account [in WordPress] and sent you the credentials via e-mail. The credentials will work for both:
1. The HTTP authentication, and;
2. The WHMCS login.Thanks, again, Tobias!
Eric P.Hi,
thanks, I have received the email with the account details and will take a look shortly!
Regards,
TobiasHi Eric,
here’s an update: The theme does indeed add those Shortcodes, but only does so temporarily. It basically adds them, runs them on the page content at a very early time, and removes then. Because of that, when WordPress runs the TablePress Shortcode, they are un-registered again, and those won’t be evaluated inside a table.
I fixed this now by re-adding the
[tooltip]
Shortcode at the end of the functions.php in your theme. With that, the table at https://rocket-powered.com/comodo-ssl-certificates executes it ??Regards,
TobiasThanks, Tobias:
You are extraordinary!
Eric P.
Hi,
thanks ?? Good to hear that this helped!
Best wishes,
TobiasHi Tobias and Eric P,
I’m sorry to post on an old thread but I’m having the same issue (using the same theme as Eric P) and I’m wondering if you could please share the exact code that you added to the end of the functions.php? ??
Many thanks in advance!
- The topic ‘Using the Theme's Shortcodes?’ is closed to new replies.