Jump to content

Archived

This topic is now archived and is closed to further replies.

glennyboy

Modal Window Via Link

Recommended Posts

glennyboy    9
glennyboy
 

Hi

 

Is it possible to add a Pagelines DMS Modal window via a link? I have a number of links that I wish to trigger the same modal and a short code won't work within my custom PHP. If possible how can I add the modal content?

 

Thanks

 

Glennyboy

Share this post


Link to post
Share on other sites
Danny    1,327
Danny

Hi,

 

No thats not how the modals work unfortunately. The modal shortcode is based off of Bootstraps modal here - http://getbootstrap.com/2.3.2/javascript.html#modals

 

As you can see they can not be used via a link as the content needs to be place too. There may well be away of doing it, but I haven't encountered it. If you want to have modals open via a link you will be best off using a plugin.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
Danny    1,327
Danny

Is that adding all that code to the <head> of the site ?


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
glennyboy    9
glennyboy

Yes as I wanted my Modal on every page... it could have been placed it in a zero height/hidden NextBox or text section also.... 

Share this post


Link to post
Share on other sites
Danny    1,327
Danny

Yeah, I don't really like that, I like to keep the <head> bloat free. If you're happy to use that method, then cool, but I wouldn't like all that in my <head> tag.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
glennyboy    9
glennyboy

Figured that was your point... it doesn't bother me too much in this case as the Modal definitely needs to open on every page.... As I say the code could just as easily be placed in PL Next Box with a height 0px / visibility hidden which given your comments I may opt for... 

Share this post


Link to post
Share on other sites
Danny    1,327
Danny

:D


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
glennyboy    9
glennyboy

I've updated my example with Embed Options. I hope others find this useful.

Share this post


Link to post
Share on other sites
Danny    1,327
Danny

Thanks for sharing.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites

  • Similar Content

    • Lisa Haran
      By Lisa Haran+
      Hi 
      I have a map here http://www.iloveoffset.com/maps/
      I want to add several pointer locations to the map, but when I do they do not appear.
      On this map there are 2 pointer locations and as you can there is only one visible.
      Earlier today I added 7 and could only see 4 so there is something odd going on.
      My theme is up to date
    • Jesper
      By Jesper+
      Is there a way to create modal popups? It was possible ind DMS2
    • clj182
      By clj182+
      Hello,
      I've been having trouble unlocking the template section for past couple of weeks. When I try clicking nothing happens. 
      I've deleted my custom css and removed plugins. Im down to having only the following plugins:
      Akismet
      Contact Form 7
      DMS Professional Tools
      Pagelines Updater
      WooCommerce
      It was working fine before i have no idea what's going on with it.
    • flourishdesignstudio
      By flourishdesignstudio
      My DMS 2 site http://www.heart-stone.com/ will not save any new custom css... I can still edit templates and publish those but any custom css that I enter never saves.
      All WP files, themes, and plugins are up to date. 
      Any thought about what might be causing this?
    • flourishdesignstudio
      By flourishdesignstudio
      Is there a way to edit the custom CSS via FTP? I know I can edit the custom code in the Chrome editor but is there a file path I can use to find and edit the CSS directly from our FTP?
      Thanks in advance for the help!
×