• Resolved jamesondouglas

    (@jamesondouglas)


    I am trying to setup a decent looking wordpress admin layout for my client. Something that will make life easier for them. I am trying to have 3 content boxes for a 3 column layout. I was trying to hard code the row onto the template and just use columns in each of the 3 content metaboxes. Is there a way to make this possible?

    If I try to use the column short code without being wrapped in the div short code I get a undefined variable error: html.

    Just wondering if this is possible or what other developers techniques are for customizing their wordpress admin template?

    Thank you

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author fortpandemonium

    (@fortpandemonium)

    I am not sure, I understand exactly what you are trying to do. Can you please post more information, what files you are editing, the code and the error message?

    The Foundation grid uses two elements – a row that creates a horizontal block to contain vertical columns. And then the columns. You can’t use the columns without the row wrap. More Info

    The structure should be like this:

    
    <div class="row">
    	<div class="small-12 medium-4 columns"> Your Content </div>
    	<div class="small-12 medium-4 columns"> Your Content </div>
            <div class="small-12 medium-4 columns"> Your Content </div>
    </div>
    

    I am not sure where you want to put this code. But if it is in a template file, and you want to use the shortcode, you need to use the do_shortcode() function. More Info

    Thread Starter jamesondouglas

    (@jamesondouglas)

    Good morning,

    Well it must have been a long day of coding, because what I was trying to do actually works. I am not sure why I was getting that weird error, it was most likely bad code or something out of place.

    Than you for taking the time to assist and for the awesome plugin by the way!
    Have a nice day.

    Plugin Author fortpandemonium

    (@fortpandemonium)

    It’s not a problem. Thank you for downloading the plugin.

    Thread Starter jamesondouglas

    (@jamesondouglas)

    Hello again,
    so with some more testing I figured out what the issue is.
    The code below is what I am trying to get working as I have the row div already in place in my template ex:”<div class=’row’>”.

    [fp-columns][/fp-columns]
    [fp-columns][/fp-columns]
    [fp-columns][/fp-columns]

    This does not work though as it is expecting the shortcode for a row? Is there anyway around that?
    It throws this error “Notice: Undefined variable: html in C:\xampp\htdocs\wordpress\wp-content\plugins\fp-foundation-assistant\includes\class-wordpress-shortcodes-foundation-5.php on line 1216”.

    The code below works, but now I am getting the helper message on the screen where the row shortcode is “Place here the shortcode tags for the column content.”
    [fp-columns][/fp-columns]
    [fp-columns][/fp-columns]
    [fp-columns][/fp-columns]
    [fp-rows][/fp-rows]

    Any information would be awesome.
    Thank you

    Plugin Author fortpandemonium

    (@fortpandemonium)

    The shortcode can’t work without the row wrap, as the class for the grid shortcode depends on both. The solution is to use consistently either html or the shortcode tags.

    My advice is to either replace the <div class=”row”></div> with [fp-rows][/fp-rows], or just use html for the columns as well.

    Again, I can’t give more specific help without seeing the code.

    Thread Starter jamesondouglas

    (@jamesondouglas)

    Bummer. Thank you for your time. I will have to rethink what I am trying to accomplish.

    Plugin Author fortpandemonium

    (@fortpandemonium)

    I am sorry for the late reply. Good luck with the site and if you have any more questions about the plugin, I’ll try and help.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Column Only Option?’ is closed to new replies.