doupa8922 2019-01-18 11:21 采纳率: 100%
浏览 106
已采纳

通过自定义程序将其他页面部分添加到首页

Problem: I would like to add additional sections to a child theme based on Twentynineteen, but I'm unable to figure out how!

Tried: I've looked through functions.php, template-functions.php and template-tags.php for something similar to twentyseventeen theme's twentyseventeen_front_page_sections which I figured would be similar in the Twentynineteen theme.

Whenever I search for 'sections' and 'customizer' I end up reading about the 'customizer add sections' which are not what I am looking for.

But no luck.

Desired result: This is ideally where I would like to be able to add new sections which I can then pull into the front page template:

enter image description here

Any hints or links to the correct place where I can find info on this would be much appreciated.

Thank you in advance.

  • 写回答

1条回答 默认 最新

  • dsaf415212 2019-02-08 15:36
    关注

    Follow-up: I never fully understood how to add a new section to the homepage display sections of the WordPress Customizer.

    In case anyone is interested in how I got around it; I created the layout i wanted with widget areas.

    You can read more about Widgetizing themes here: https://codex.wordpress.org/Widgetizing_Themes

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥20 完全没有学习过GAN,看了CSDN的一篇文章,里面有代码但是完全不知道如何操作
  • ¥15 使用ue5插件narrative时如何切换关卡也保存叙事任务记录
  • ¥20 软件测试决策法疑问求解答
  • ¥15 win11 23H2删除推荐的项目,支持注册表等
  • ¥15 matlab 用yalmip搭建模型,cplex求解,线性化处理的方法
  • ¥15 qt6.6.3 基于百度云的语音识别 不会改
  • ¥15 关于#目标检测#的问题:大概就是类似后台自动检测某下架商品的库存,在他监测到该商品上架并且可以购买的瞬间点击立即购买下单
  • ¥15 神经网络怎么把隐含层变量融合到损失函数中?
  • ¥15 lingo18勾选global solver求解使用的算法
  • ¥15 全部备份安卓app数据包括密码,可以复制到另一手机上运行