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+    13
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   
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+    13
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

    • 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. 
    • mrhinsh
      By mrhinsh
      Guys,
       The ProPricing plugin does not seam to render shortcodes.

       
      I am using WP-Types, and as you can see the shortcode is rendered in the "Elements" but not in the "ProPricing".
      Can we get a fix?
    • micstepl
      By micstepl+
      @Simon I do have an urgent request for a client Projekt. After migrating (before it worked) my site to anpother Server I get problems will all ShortCode Sections.
      See this Problem here: http://www.baumeister-scheidl.at/map-try
      thanks in advance!
      Maybe ist a User (MY) fault.
×