• 0
Sign in to follow this  
Followers 0

Bug: Short Code - Button Groups


Question

Posted · Report post

Hello, I'm reporting a bug for Danny"] or @[member="martin to check and submit to github.

 

Placing the shortcode  for a button group into a DMS TextBox section does not work properly.

 

The shortcode itself displays as text either side of the buttons, and the buttons stack ontop of each other instead of side by side.

 

The shortcode works in the ContentLoop section which is how I've gotten around this problem. However there is one page where I need multiple rows of button groups so I'm not sure how to do this yet.

 

The short code also works correctly in the Hero section, and PopThumbs section. I have not tried it anywhere else.

 

I checked in the PL300 and Gavin Aldrich confirmed this bug and advise me to post this thread,

 

Thank you.

 

 

Share this post


Link to post
Share on other sites

3 answers to this question

  • 0

Posted · Report post

Hi,

 

Working fine for me. http://d.pr/i/1X2U

The issue is the Wordpress loves to add <p> tags so you have to remove all line breaks from the code. So instead of:

 

[pl_buttongroup]
    <a class="btn btn-important" href="#">Link</a>
    <a class="btn btn-important" href="#">Link</a>
    <a class="btn btn-important" href="#">Link</a>
[/pl_buttongroup]

 

Use it like this instead:

 

[pl_buttongroup]<a class="btn btn-important" href="#">Link</a><a class="btn btn-important" href="#">Link</a><a class="btn btn-important" href="#">Link</a>[/pl_buttongroup]
1 person likes this

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Thank you Danny

 

This method is working for me.

 

Would it be worth adding a note about this to the PL docs? I copy and paste shortcode from the docs page, and then edit it to suit because I'm not a coder.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Yeah I will do, thanks for letting me know this resolved your issue.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0