• Resolved discere

    (@thistlebean)


    Hi,

    I would like to embed an HTML pricing table on the home page. However, whenever I insert the shortcode into an HTML widget on the homepage nothing shows up at all.

    Is this a known issue?

    Site is: cvrocket.net

Viewing 6 replies - 1 through 6 (of 6 total)
  • MariusG

    (@marius_codeinwp)

    Hello,

    Currently Zerif is made to work only with the customized pre-set widget types,but I’ve added some custom html widgets and it worked.
    In which section are you trying to add the widget?

    Regards,
    Marius

    Thread Starter discere

    (@thistlebean)

    Hi,

    Thanks for responding.

    I tried it in the ” Our Team ” section.

    MariusG

    (@marius_codeinwp)

    Yes, it seems like it will only post widget titles in that section, I’ll add this to our suggestion lists and see what we can do about it, but I don’t have an exact answer for you. It might be easier to add the html code you need between sections in front-page.php

    Marius

    Thread Starter discere

    (@thistlebean)

    Thanks very much Marius.

    I think that adding that functionality to your theme would be great, both for user experience and perhaps for marketing purposes.

    Will try manually add the code to front-page.php and let you know if it works out.

    Thread Starter discere

    (@thistlebean)

    I have tried to insert some HTML code but it doesn’t appear to be working. Maybe I’m putting the code into the wrong place, but I either don’t understand enough about embedding HTML in PHP files or it just plain doesn’t work.

    MariusG

    (@marius_codeinwp)

    Hello,

    To insert HTML in PHP files, make sure you’re not trying to insert between php tags. If so, then first you need to close the tag with `?>’
    Add your HTML then code reopen php tags with <?php

    For example:

    <?php
    ---------X lines of code------
    ---------Y lines of code------ ?>

    would become:

    <?php
    ---------X lines of code------ ?>
    ---------HTML CODE -----------
    <?php
    ---------Y lines of code------ ?>

    I hope you managed to understand what I meant ??

    Regards,
    Marius

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Homepage | Widget HTML | Not working’ is closed to new replies.