• Resolved studiol

    (@studiol)


    Hello,
    I place the Widget PHP Code <?php widgets_on_template(“wop_1”); ?> in my page or header template, but the only code I see in the source-code of my homepage is an empty list

      in the widget area.

      <div id=’wop_1′ class=’widgets_on_page’>

        </div><!– widgets_on_page –>

      Viewing 3 replies - 1 through 3 (of 3 total)
      • Plugin Author toddhalfpenny

        (@toddhalfpenny)

        Hey @studiol,

        Sorry to hear you’re having trouble.
        Would you please double check the Sidebar setting to see which widget you’re trying to use, and also check that the shortcode is set as specified in the sidebar?

        Ta,
        Todd

        Thread Starter studiol

        (@studiol)

        Hi Todd,
        thanks for your answer. My problem isn’t the widget-sidebar or the backend-shortcode. I try to write the code directly in the PHP-header or -footer template.

        <?php widgets_on_template(“wop_1”); ?>

        Sincerely
        Oliver

        Plugin Author toddhalfpenny

        (@toddhalfpenny)

        Yes, I think I got that @studiol, apologies if I was not clear.
        From the look of your first post it seems your shortcode is being caught by the plugin and is trying to output some widgets.

        What you need to do, for Widgets to appear on your page, is to add Widgets to the sidebar, via the normal widgets admin screen. The plugin will have add an extra sidebar for you to use. Do you see this?

      Viewing 3 replies - 1 through 3 (of 3 total)
      • The topic ‘PHP Code don’t work’ is closed to new replies.