content and sidebar width
-
Hello
My site’s layout for pages with a sidebar are 50/50
So, I added this filter:add_filter( 'generate_content_class','ds_equal_columns' ); function ds_equal_columns() { if (!is_front_page() && !is_page(20) ){ ?> class="content-area grid-parent mobile-grid-100 push-50 grid-50 tablet-push-50 tablet-grid-50" <?php }}As you can see I added a condition because on the homepage and another page i didn’t want the 50/50 layout but a full page layout.
SInce checking in the admin “full content” didn’t help (because the grid-50 classes were implemented on the div)
Is there a better way to go forward? So I can have pages that I do want with a 50/50 layout to be selected via the meta box, and other pages to be full width?
Thanks,
Dan
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
The topic ‘content and sidebar width’ is closed to new replies.
