Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #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&#8221; >

    <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
    Zoltan

    #498435

    Hey 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!
    Yigit

    #499760

    Thank 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

    #499785

    Hi!

    You can try using this plugin – https://wordpress.org/plugins/php-code-widget/

    Best regards,
    Yigit

    #499794

    Thanks. 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
    Zoltan

    #500317

    Hi!

    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,
    Andy

    #500488

    Never mind, I’ve figured out.

    I have to run the pseudo html code over the do_shortcode wordpress function.
    That’s all.

    Zoltan

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘How to display table from widget code’ is closed to new replies.