• I’ve recently started using the MaxButtons plugin and managed to get a few buttons on my pages up without any problems. Now I’d like to add a button to my sidebar (because the news widget is bland and I’d like to link to my Blog posts through a button in the sidebar) but I can’t seem to do it.

    I added the code that the MaxButtons plugin generates to a text widget but that didn’t work, so then tried putting the code into the visual editor of a new page, switching to html (hoping to grab some different code and paste it into the text widget – I really have no idea what I’m doing), but obviously that didn’t work either. So I’m stuck. I understand that this plugin works on CSS code rather than html but not too sure how to translate between the two, if you need to. The plugin does say you can paste the code anywhere on your website to generate a button so I don’t feel I’m being too stupid here. I have a basic idea of how the sidebar.php file template works – I’m comfortable swapping which widget comes first etc., but that’s about it.

    Any help would be greatly appreciated,

    Thank you

Viewing 15 replies - 16 through 30 (of 36 total)
  • my button doesnt work if you add a space to the text in the button… why?

    James1985 – We’ve never seen that, and a simple space shouldn’t matter. Can you post the URL of where the button is used?

    sure:

    https://cheap-airport-taxis.com/taxi-ashford-gatwick-airport/

    button cuts in half when i place a space in the text field.

    can you see a solution?

    thanks for getting back to me

    James1985 – It looks like the buttons are wrapping because the table column it’s in isn’t wide enough. Try increasing the width of that column, or perhaps decreasing the font size a bit.

    Max:

    I used the:
    <div style=”margin-top: 10px; margin-right: 10px; margin-bottom: 10px; margin-left: 10px;”>
    <?php echo do_shortcode(‘[maxbutton id=”17″]’); ?>
    </div>
    solution and it seems to have solved my problem, yet what the “style” information is now revealed in addition to the button being shown correctly…any way to use the “<?php echo do_shorthcode, etc.” and hide the “style/formatting” data thats being shown?

    Thanks!

    BTW, your buttons plugin ROCKS and i’m learning how to use it MANY places on my site…

    Max:

    I used the:
    <div style=”margin-top: 10px; margin-right: 10px; margin-bottom: 10px; margin-left: 10px;”>
    <?php echo do_shortcode(‘[maxbutton id=”17″]’); ?>
    </div>
    solution and it seems to have solved my problem, yet what the “style” information is now revealed in addition to the button being shown correctly…any way to use the “<?php echo do_shorthcode, etc.” and hide the “style/formatting” data thats being shown?

    Thanks!

    BTW, your buttons plugin ROCKS and i’m learning how to use it MANY places on my site…

    Max:

    Oh,BTW…I am using 12 buttons consecutively and the button is only showing on the first 5…I know it has something to do with the Theme/Widget/Formatting=Background, yet I thought this “fix” was the way around that…and so far, it works (on the first five buttons!) and STILL reveals:

    “mbpro_loadFontFamilyStylesheet(“Open Sans”);mbpro_loadFontFamilyStylesheet(“Ubuntu”);
    ‘); ?>”

    around each button…help!

    coachjoe – Thanks for the compliment ??

    As for you question, what do you mean by hiding the style/formatting? Are you seeing this as output on your page? Can you post the URL where your buttons are used? That would help to see what’s going on?

    Max:

    Thanks for the response…I KNOW that once I get this to work, I will start flying with the pages I’m creating…looking forward to your response.

    https://bullseyetheory.com/maxbuttons/

    Um, you didn’t answer my previous questions ??

    I updated the post…didn’t show the link…does now…

    Er…duh! On my part! Here is the link: https://bullseyetheory.com/maxbuttons/

    coachjoe – I see what you mean now, but strange as I’ve never seen that. It looks like the widget is stripping out the <script> tag being used by the button, therefore showing the code as plain text.

    How did you add the buttons to the widget?

    Yeah…wacky, huh? What I’ve done is added a Plain Text Widget to the Upper/Right Sidebar…the first SIX buttons show with all this code surrounding each button, then the next SIX buttons get pushed back into to the Sidebar default formatting, showing the button pic, but not the the button itself, plus all this code surrounding…this “fix” would work like genius if I could only add the proper php code to precede the button shortcode and place that anywhere I want…hmmmm…

    Did you add the buttons using their shortcode or with PHP code?

Viewing 15 replies - 16 through 30 (of 36 total)
  • The topic ‘MaxButtons in the sidebar?’ is closed to new replies.