Community > Discussions
170 views
6 replies

Porto - Shortcode for Lightbox - Popup with video has a problem since upgrade.

Hi,
After upgading to the latest version of Porto the shortcode for the Lightbox - Popup with video, is now putting in a line break.

I am not familiar with html or coding so I don't know what has caused this, but it did work ok.

The problem can be seen here: http://www.worcesterpahire.co.uk/Equipment-To-Hire/PA-Disco-Equipment
If you scroll down the page you will see Package 3 and it has 2 buttons.

Why is there a second line for the text, this never used to be there. The text was on one line.

I can't figure out what is causing this.

Any ideas?

Thank you,
Matt

mattfarmer mattfarmer
Published 04/30/2020 16:02
Add Comment
Ashish Pachori

Are you talking about buttons in same line or text of button in same line?

replied 05/01/2020 11:15
mattfarmer

Its the text inside the button.
It was on one line but now it is on two.

 

replied 05/01/2020 11:45
Ashish Pachori

Please use col-md-7 class instead of col-md-4 in these buttons markup.

See https://snipboard.io/0BO8fr.jpg

replied 05/01/2020 13:34
mattfarmer

That worked great.
Thank you very much.

I am also trying to use a button to open a PDF file.
I am currently using a text link to open it, but I would like to use a button.

How do i modify the button shortcode to add in the <a> tag?

The button shortcode is below and also the code that I am currently using to open the PDF file.

<button type="button" class="btn btn-borders btn-primary">Default Size</button>

<a href="/Portals/17/WorcesterPA%20Directions.pdf" target="_blank">Click here&nbsp;for location map and parking instructions</a>

 

Thank you,
Matt

replied 05/01/2020 14:31
Ashish Pachori

You cannot use <a> tag inside the button markup. But you can use btn btn-borders btn-primary class in the <a> tag so that it look like button

<a href="/Portals/17/WorcesterPA%20Directions.pdf" target="_blank" class="btn btn-borders btn-primary">Click here&nbsp;for location map and parking instructions</a>

 

replied 05/04/2020 10:46
mattfarmer

That's fantastic.
Thank you very much for your help.

replied 05/04/2020 11:12

Last Activity 05/04/2020 11:12