Jump to content

Archived

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

jamieg270

Nested Grid shortcodes don't seem to be working

Recommended Posts

jamieg270

Hi Grid shortcodes don't seem to be working when nested. I am using DMS 2.0.5 I have deactivated all plugins leaving just the Paglines Updater, DMS Professional and Grid SHortcodes.

 

This is my shortecode:

[row]
[span6]
content here
[/span6]
[span6]

[row_a]
[span6]
content here
[/span6]
[span6]
content here
[/span6]
[/row_a]

[/span6]
[/row]

Is there something I'm doing wrong? I've used this before on DMS v1.x.x without problems....

 

I can't show you the result the file size for upload is too small to be able to attach the image!! However the [/row_a] and then [/span6] are being rendered in text on the page and the second nested column gets set as if its in its own row below the first. I don't have another DMS install to test this is so I'm not sure its reproducible. 

 

I'm going to have to add the columns in using divs and classes as the client needs to see this tomorrow. 

 

If I get the chance I'll set up a separate install to test aqain and give you an example to look at.

Share this post


Link to post
Share on other sites
Guest

Your first closing span6 is breaking the others from being rendered properly. Because you're nesting within a span6, you need to also change your inner `span6` shortcodes to a `span6_a`.

 

Every grid shortcode, including all spanX shortcodes have "namespaced" _[a-z] suffixed tags available to use.  Keep each level of nesting within it's own namespace and you should be fine :)

Share this post


Link to post
Share on other sites
jamieg270

Ah thanks!! Sorry to waste your time!! I forgot that the interior 'spans' as well as 'rows' should be namespaced....   :unsure:

 

Thanks again!

Share this post


Link to post
Share on other sites

  • Similar Content

    • 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
    • DonRicardoRVM
      By DonRicardoRVM+
        First of all, sorry for my bad English.  I am developing an ecommeece with wp, woocommerce, PL5 and quickshop, and I need to do some changes in the simple product grid. I want to change the classes of some divs, but I can't find the templates. 
      Also, I change the grid of the category products pages, but I didn't make it correctly.
      This is the cat archive's: http://globosdemar.com/wp/categoria-producto/camisetas-para-ninos-y-ninas/
      Can you help me?
    • 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. 
×