• 0

Grid Shortcodes Nested Grid shortcodes don't seem to be working


Question

Posted · Report post

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

2 answers to this question

  • 0

Posted · Report post

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
  • 0

Posted · Report post

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

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