Jump to content

Archived

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

MobileParity

DMS 2 Map Shortcode

Recommended Posts

MobileParity

Hello all,

 

I am testing DMS 2 on Flywheel. I added the DMS 1.x shortcode syntax for a Google Map however it is not rendering on the screen. I only see the actual shortcode. I have use the sections for Text Box, Post Loop, and Media Box however the shortcode still will not work. Do I have to use DMS 2 Pro in order to use the Google Map functionality?

 

See the image here: http://screencast.com/t/jm3i9JIQwj

 

Regards,

 

AG

Share this post


Link to post
Share on other sites
GetMeWebDesign

Shortcode wont render in a textbox ... which is for text. However, that shortcode works for both Mediabox and when added within a post for post link. Not sure whether this isnt available for the free version. However, if it isnt, just emebd a Google map?

 

Looking at the image, it looks as if you have you have pasted incorrectly. Make sure you either paste as plain text or into something like Notepad to ensure you are not pasting this:

 

<ol class="linenums">
<li class="L0" style="color: #bebec5;"><code class="html" style="color: inherit;"><span class="pun" style="color: #93a1a1;">[</span><span class="pln" style="color: #48484c;">googlemap width</span><span class="pun" style="color: #93a1a1;">=</span><span class="str" style="color: #dd1144;">"100%"</span><span class="pln" style="color: #48484c;"> height</span><span class="pun" style="color: #93a1a1;">=</span><span class="str" style="color: #dd1144;">"300"</span><span class="pln" style="color: #48484c;"> address</span><span class="pun" style="color: #93a1a1;">=</span><span class="str" style="color: #dd1144;">"San Francisco,CA"</span><span class="pun" style="color: #93a1a1;">]</span></code></li>
</ol>

Chrome Developer tools - please use them. If you are not sure how, then it is easy to learn

Be inventive in your keyword search of the forum ie Navi > Navbar > menu > tabs > font > color. Your answer lies there somewhere!

Share this post


Link to post
Share on other sites
MobileParity

Thanks for the help, however its still not working. I have also used the Text Box to enter short codes with DMS 1x. Not sure what could be the problem.

Share this post


Link to post
Share on other sites
GetMeWebDesign
  1. [googlemap width="100%" height="300" address="San Francisco,CA"]

 

Above is what it looks like in the screenshot. Please check you are adding just the shortcode. It definitely looks as if you are pasting in correctly. Have you tried pasting Google map embed. If that isnt working then you have a bug. Paste this into a mediabox or within the text/html of a post:

 

<iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d100940.14245968236!2d-122.43759999999999!3d37.75769999999999!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x80859a6d00690021%3A0x4a501367f076adff!2sSan+Francisco%2C+CA!5e0!3m2!1sen!2s!4v1401778184189" width="600" height="450" frameborder="0" style="border:0"></iframe>


Chrome Developer tools - please use them. If you are not sure how, then it is easy to learn

Be inventive in your keyword search of the forum ie Navi > Navbar > menu > tabs > font > color. Your answer lies there somewhere!

Share this post


Link to post
Share on other sites
MobileParity

I took your advice and pasted the shortcode into Notepad first however it still does not work. However the iframe embed you provided works just fine in the Media Box and text/html of the post. I'm now just curious as to why the shortcode does not work as I would rather use a shortcode than using this method to embed a map every time. Thanks for the help!

Share this post


Link to post
Share on other sites
GetMeWebDesign

Really need one of the Moderators to look at this. Do you have a link to the site you are testing with? First things first. All plugins, with the exception of the pagelines plugins should be deactivated and any custom CSS you have added removed. Assuming you have done this already, do other shortcodes, for instance buttons, youtube etc work, or is it just this google maps shortcode that is failing?


Chrome Developer tools - please use them. If you are not sure how, then it is easy to learn

Be inventive in your keyword search of the forum ie Navi > Navbar > menu > tabs > font > color. Your answer lies there somewhere!

Share this post


Link to post
Share on other sites
Danny

You should not use the TextBox section for shortcodes, that section is supposed to be used for text and nothing more. If you want to use shortcodes, HTML then you will want to use either a MediaBox section or the NextBox section (club only).

 

In my image below you can see that I have simply copied and pasted the code provided above by GetMeWebDesign into a MediaBox HTML textarea and the code worked just fine.

 

https://cloudup.com/c6KQBhProMV


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
MobileParity

Right on, I appreciate the feedback. Once I go Pro/Club I will check out the NextBox

Share this post


Link to post
Share on other sites
GetMeWebDesign

MobileParity Something isnt quite right if the shortcode wont work. after all it is just shortcode for the longer Google embed code. It should work in the WP Loop etc. I am not saying your issue is related, but you might want to follow this topic http://forum.pagelines.com/topic/35313-shortcode-not-working-dms2/#entry209824


Chrome Developer tools - please use them. If you are not sure how, then it is easy to learn

Be inventive in your keyword search of the forum ie Navi > Navbar > menu > tabs > font > color. Your answer lies there somewhere!

Share this post


Link to post
Share on other sites

  • Similar Content

    • jeomiland
      By jeomiland+
      Howdi
      Am following a couple of tutorials about making custom shortcodes and making them available in your site. They recommend to make a "my_custom_shortcode.php" file in wp-content folder so it survives Core wordpress and Theme updates. However, they then say to place a couple lines of code in the theme functions.php file. The one in pl-framework theme folder does not look like the best place to put that code and I can't see a shortcodes.php file in the theme.
      So where is the best place and way to add custom shortcodes to a Pl5 project?
      Thanks
      john erik
    • Jason
      By Jason+
      Any chance you can add anchors to the tabs shortcode (similar to ultimate shortcode plugin)?
      Just annoying having to use that plugin rather than pagelines one
       
      <h2>Tabs anchors</h2> [su_tabs] [su_tab title="Tab 1" anchor="First"] Tab 1 content [/su_tab] [su_tab title="Tab 2" anchor="Second"] Tab 2 content [/su_tab] [su_tab title="Tab 3" anchor="Third"] Tab 3 content [/su_tab] [/su_tabs] Use next links to switch this tabs <a href="#First">Open tab 1</a> | <a href="#Second">Open tab 2</a> | <a href="#Third">Open tab 3</a>  
    • Jason
      By Jason+
      Any solution to map section not rendering inside tab shortcode.
      (Map sits inside 3rd tab so map not visible on page load)
      Also this just seems to effect the map section. Map shortcode renders fine.
      I want to use the map section for finer control over markers and locations
      Renders fine if in first page.
       
      Thanks
    • bnapoli
      By bnapoli+
      On my site www.anewbeginning.com the "toggle" function mysteriously stopped working.  I have tried all browsers, tried disabling plugins, removing all the relevant CSS but still cant understand why it isn't working.
      The toggle is placed on this page: http://anewbeginning.com/?page_id=15965 and http://anewbeginning.com/?page_id=10779 but it does not display.
      On my other Platform5 websites, that exact code works fine: see here http://4aa.d11.myftpupload.com/?page_id=123
      Code is the same. Please help, thank you!
    • micstepl
      By micstepl+
      Pagelines seems to "disallow" the (a) usage and/or (display) of shortcodes.
      Specifically I need shortcodes in "description" of "tag/catagory" in order to display images/fontawsome, before a category.
      Please can you provide a fix for me to allow. 
×