php - Split post or page content in two or more columns

I'm not using a pagebuilder, this because I like to offer to any client a different layout for the contents. I have

I'm not using a pagebuilder, this because I like to offer to any client a different layout for the contents. I have the necessity to split the contant of a page or post in two or more columns, I'm using bootstrap 4 and I want to create some layouts without the necessity to hardcode the columns or put the div inside the post content directly. Is this possible, how I can make it?

I'm not using a pagebuilder, this because I like to offer to any client a different layout for the contents. I have the necessity to split the contant of a page or post in two or more columns, I'm using bootstrap 4 and I want to create some layouts without the necessity to hardcode the columns or put the div inside the post content directly. Is this possible, how I can make it?

Share Improve this question asked Feb 12, 2020 at 16:32 sialfasialfa 32910 silver badges29 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

If you're using the Block Editor, use Core's column blocks.

If you're using the Classic Editor, make shortcodes for Bootstrap's rows and columns. When you enter content, you can then just enter

[row]
[column large="6"]First column content[/column]
[column large="6"]Second column content[/column]
[/row]

(You may find prebuilt shortcodes out in the wild since this is a common scenario. Or you may want to create your own as only you know which of the column widths you're likely to need.)

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744754329a4591787.html

相关推荐

  • php - Split post or page content in two or more columns

    I'm not using a pagebuilder, this because I like to offer to any client a different layout for the contents. I have

    19小时前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信