• Hi everyone, I have installed the wordpress plugin for Mailchimp and want this to appear in my sidebar. Problem is I cant use the widget as it will override the sidebar settings which are not using widgets. In the mailchimp help document it says you can use

    mc_display_widget();

    but I cant seem to get this to show in the sidebar if add this code directly into the sidebar.php

    could someone please help..

    <h3 class="dbx-handle">Sign up</h3>
    <div class="dbx-content">
    mc_display_widget();
    </div>

    site (tests are local though)
    https://www.steam-uk.com

    Thanks

    Rob

Viewing 3 replies - 1 through 3 (of 3 total)
  • I think you should put <?php mc_display_widget(); ?> instead. mc_display_widget(); is a php function and you need to tell the browser that you’re using the php language- which is what <?php … ?> does.

    This could be entirely wrong, it’s just what I’ve worked out from messing with themes.

    Thread Starter lister110

    (@lister110)

    thanks… is there a way to edit the html of a widget? I added the php and it worked but I have a rogue legend appear in the fields which I would like to comment out?

    rob

    Sure is. Go to “editor” under the plugins tab. Then, by “select plugin to edit:”, pick the mailchimp plugin, and click select. There are a few files in there that you could edit, but you’ll have to poke around to find out what one.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Mailchimp plugin – adding code manually into sidebar??’ is closed to new replies.