-
AuthorPosts
-
August 8, 2014 at 11:02 pm #301834
Dear support team,
I want to put a rather big table into a post.
I’d love to do that with the Avia Layout Builder, but since that is not available in posts, I use the shortcode generator in the editor to create the table. Works.
The problem starts when I have to alter the table. Since its pretty big, it is really annoying to do that in the raw shortcode. Is there any way to get the shortcode back into a visual view?
I could live with thw workaround to copy the shortcode into a page and switch to the Avia Layout Builder. Change the table, and copy the shortcode back to the post. But the normal visuar editor and the Avia Layout Builder seem to be completely seperated.Do you see any way to work on a already created table in a post in the visual way?
Thanks,
TomAugust 8, 2014 at 11:17 pm #301838Hey Tom!
You can enable the Layout Builder on posts, try adding this to your theme / child theme functions.php:
add_filter('avf_builder_boxes','enable_boxes_on_posts'); function enable_boxes_on_posts($boxes) { $boxes[] = array( 'title' =>__('Avia Layout Builder','avia_framework' ), 'id'=>'avia_builder', 'page'=>array('page','post'), 'context'=>'normal', 'expandable'=>true ); $boxes[] = array( 'title' =>__('Layout','avia_framework' ), 'id'=>'layout', 'page'=>array('page','post'), 'context'=>'side', 'priority'=>'low'); $boxes[] = array( 'title' =>__('Additional Portfolio Settings','avia_framework' ), 'id'=>'preview', 'page'=>array('page','post'), 'context'=>'normal', 'priority'=>'high' ); return $boxes; }
Best regards,
JosueAugust 9, 2014 at 8:53 am #301955Dear Josue,
that would be absolutely great – but in other support posts in this forum, I think from 2013 (so not too long ago), I found the info that you do not recommend adding the layout builder to posts.
– comments would not be posible any more
– problems with the position of titles could happen
– … other things that I do not remember exactlyDid that change? Is it safe now to add the layout builder?
Thank you,
TomAugust 9, 2014 at 9:09 am #301958Hi Tom!
Those drawbacks will only occur with Posts with ALB activated, from what you describe i believe this table is in one individual post.
Cheers!
JosueAugust 9, 2014 at 10:37 am #301963Hi Josue,
perfect, thanks for the quick answer. OK, I’m not aware of the difference, yet. I will figure out … . So much to learn about this great theme, and so many cool stuff. I’m more and more impressed … also about the stability. Really cool.
Yes, you are right, I’m talking about an individual post.
So that should solve my problem,
thanks a lot,
TomAugust 9, 2014 at 10:59 am #301965You are welcome Tom, always glad to help :)
Regards,
JosueAugust 9, 2014 at 3:10 pm #302012One Last Question – since I think I misunderstood you a little.
I put the code into my child themes functions.php – and endeed, the comments section is gone.So did you mean with your answer above that when I want to see the table in visual mode, I have to activate the Advances Layout Builder. But since the drawbacks will only occur on the post where activated, I will only have them on the one post where I want to see the table?
So it’s either “having comments” or “seeing the table in visual mode” – but not both. Right?
Than maybe switching the ALB into debug mode and using a (not published) page to create the table, and than copy the shortcode into my post, might be the better option.
Or did I get something wrong?
Thanks for your help & patience,
TomAugust 10, 2014 at 2:28 am #302104Hey Tom!
Not really, actually there is a way to have comments on ALB, look for the “Comments” element (Content Elements).
Regards,
Josue -
AuthorPosts
- You must be logged in to reply to this topic.