-
AuthorPosts
-
September 4, 2015 at 3:21 pm #498430
Hi,
I want to use Enfold responsive table styles in my widgets.
I print a table like this one below from php (copied from my content).
But it is displayed differently than the one in the content area.<table class=’avia-table avia-data-table avia-table-1 avia-builder-el-3 el_after_av_blog el_before_av_textblock ‘ itemscope=”itemscope” itemtype=”https://schema.org/Table” >
<caption>Test table</caption>
<tbody>
<tr class=”>
<td class=”>sdgbsdgb sgb sgb sgdb sgd</td>
<td class=”>sdb sgdb sdgb sdg</td>
<td class=”>sdgbsdgbsdgbsd</td>
</tr><tr class=”>
<td class=”>dfhndfhn</td>
<td class=”>hndfhndfhndfhndfh</td>
<td class=”>dfhndfhndfhndhrn</td>
</tr>
</tbody></table>
regards
ZoltanSeptember 4, 2015 at 3:23 pm #498435Hey zoltan_komaromy!
You can enable debugging mode to see shortcodes you have created in pages using Advanced Layout Builder – http://kriesi.at/documentation/enfold/enable-advanced-layout-builder-debug/
Or, You can switch to Default Editor and click on Magic Wand to see full list of shortcodes http://i.imgur.com/n4KXkdm.jpg
then you can create any of them and copy/paste shortcode into any other content element or into text widget.Cheers!
YigitSeptember 8, 2015 at 10:56 am #499760Thank you.
I need to display it from my widget php code. Not a html text widget!
If I print (echo) the pseudo code over my widget nothing happens:[av_table purpose='pricing' pricing_table_design='avia_pricing_default' pricing_hidden_cells='' caption='' responsive_styling='avia_responsive_table'] [av_row row_style=''][av_cell col_style='']fengdfhn[/av_cell][av_cell col_style='']dndfhndfhn[/av_cell][/av_row] [av_row row_style=''][av_cell col_style='']dfhndfhndfhn[/av_cell][av_cell col_style='']dfhndfhn[/av_cell][/av_row] [av_row row_style=''][av_cell col_style='']fhndfhndfhn[/av_cell][av_cell col_style='']dfhndfhndfhndfhn[/av_cell][/av_row] [/av_table
How can I run this code through my php code to convert it to a table?
There must be a preprocessor function that converts it to html.Regards
Zoltan- This reply was modified 9 years, 2 months ago by zoltan_komaromy.
September 8, 2015 at 12:25 pm #499785Hi!
You can try using this plugin – https://wordpress.org/plugins/php-code-widget/
Best regards,
YigitSeptember 8, 2015 at 12:35 pm #499794Thanks. But IMHO that doesn’t helps me.
I’ll try to describe it more precisely:
I’ve already wrote my widget plugin. I’ve a database query in my php code. I want to display the result in a responsible and css formatted table, like in the content area. If I simply print a table with the same html code as in the content area, it doesn’t work as expected.Regards
ZoltanSeptember 9, 2015 at 11:46 am #500317Hi!
in this support forum we can offer basic support only, as written in our support policy. This kind of customization you want to achieve would be considered as custom work and for this job you can hire a freelancer for example here: http://kriesi.at/contact/customization
Best regards,
AndySeptember 9, 2015 at 3:38 pm #500488Never mind, I’ve figured out.
I have to run the pseudo html code over the
do_shortcode
wordpress function.
That’s all.Zoltan
-
AuthorPosts
- The topic ‘How to display table from widget code’ is closed to new replies.