• Resolved sarahsbookshelves

    (@sarahsbookshelves)


    Hi – I copied an existing button and made some small edits to create a new button. When I put the shortcode into my post and checked the preview, the button showed up twice. How can I fix this?

    I’m using Version 4.9.5 of WordPress.

    PS – the post URL listed above is not yet live, so you’ll get a 404 error when you click on it. I’m still in draft mode looking at the Preview only.

    Thanks!
    Sarah

    The page I need help with: [log in to see the link]

Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Author Bas Schuiling

    (@basszje)

    That’s hard to say without any option to see the page. Make sure the shortcode is there once, not twice. And see that any caching has been refreshed.

    Thread Starter sarahsbookshelves

    (@sarahsbookshelves)

    Thanks, Bas. I double-checked that the shortcode is only in there once. And here is a link to my preview page:
    https://www.sarahsbookshelves.com/?p=11574&preview=true

    Could it be because I copied an existing button to make this one rather than starting fresh? I mean, I should be able to do that, but…

    Plugin Author Bas Schuiling

    (@basszje)

    Problem is that non-published pages are not viewable for other people, so I can’t see what’s on that page.

    To answer the question, when you copy a button ( only needed when you want to change the styling ) , it generates a new unique number you use for the shortcode.

    Every [maxbutton id=x] statement will generate a button if that button exists.

    Thread Starter sarahsbookshelves

    (@sarahsbookshelves)

    Yes – I’ve got that…my shortcode generated a new button [maxbutton id=2].

    But, the new button I generated is showing up twice in my post. Here is the coding for the end of my post. What am I doing wrong?

    <p style=”text-align: center;”><span style=”font-size: 14pt;”>As always, please email [email protected] with any questions about becoming a Sarah’s Book Shelves Superstar via Patreon!</span></p>
    [maxbutton id=”2″]
    [maxbutton name=”Patreon Support”]

    Plugin Author Bas Schuiling

    (@basszje)

    Aha. Adding a button by name *is* the same thing as using the ID.

    The second method could be useful if you want to organize your buttons around names ( which can be changed, numbers can’t ).

    So remove either of them, and you are left with one. Every shortcode that says ‘maxbutton’ will try to add a button.

    Thread Starter sarahsbookshelves

    (@sarahsbookshelves)

    Aha – I see! That worked – thank you so much for the clarification!

    Plugin Author Bas Schuiling

    (@basszje)

    Good to hear!

    Hi,
    I am using the plugin- MaxButtons. When I edit the buttons and when copy-paste the shortcode, there are two buttons displaying. I want only one button to be displayed.
    Please help me in this.

    Plugin Author Bas Schuiling

    (@basszje)

    Copy only one of the two shortcodes in the example, they do the same.

    Thanks! It worked! I am using the buttons in the product category description part. When used, on the product category page, it is displaying. But, on the product categories page, i.e where I have displayed the product categories, under each product category, the description part (buttons) is coming. I want to hide this.
    Please let me know.

    Plugin Author Bas Schuiling

    (@basszje)

    What’s the description part of a button? Also please give a link.

    Sorry, my website is under maintenanace. Can’t send any link.
    Let me explain.
    See, I created buttons and then copied the shortcode in the PRODUCT CATEGORY DESCRIPTION.. Now, I created one more page for displaying PRODUCT CATEGORIES using woocommerce shortcode. When displayed, the PRODUCT CATEGORY DESCRIPTION is also coming under the product category. (i.e the buttons are displayed under product category).
    I want to hide that.

    Plugin Author Bas Schuiling

    (@basszje)

    That’s something you have to figure out with your theme / woocommerce / whatever is loading over there.

    Ok thanks.

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Button showing up twice in post preview’ is closed to new replies.