• 0

Masthead buttons open up a modal?


Question

Posted · Report post

Hey guys - Has anyone ever tried to get the Pagelines Masthead buttons (or any section buttons for that matter) to open up a modal popup instead of link to a new page? I am trying to do that with my latest site and would love some help/guidance on how to accomplish this feat. I know Pagelines has a suite of tools including a shortcode for modal popups -- just don't know how/or if it is possible to make the Masthead link a modal popup instead. Looking forward to any help. 

Share this post


Link to post
Share on other sites

1 answer to this question

  • 0

Posted · Report post

I've done this but it's a bit of a hack. Add # to the required url field and then the modal shortcode into the button text field. 

 

http://screencast.com/t/S8PFv1JOD2Vt

 

This then gives you two buttons when you save/refresh. One being created by the masthead code, one by the modal link. Use css to hide the button created by the masthead leaving only the modal button active.

 

.masthead .btn-large {
    display: none;
}

 

End result - http://screencast.com/t/dYJwgdaB0kum

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