dongzhabo2796 2018-10-06 09:05
浏览 38

如何在Storefront博客存档页面标题上使用挂钩和过滤器?

I'am trying a few days now to edit the blog page of Storefront. It shouldn't be that hard, but actually it is.

What I basically want to do is to show all the post in a grid layout. I got that working with css.

 body.blog article, body.archive article {
    width: 32.5%;
    display: inline-block;
    vertical-align: top;
    text-align: left;
    margin-bottom: 10px;
    position: relative;
}

.hentry.type-post .entry-content {
    width: 100%;
    float: none;
    border: 5px solid yellowgreen;
}
.hentry .entry-header {
    /*border-bottom: none;*/
    border: 3px solid blue;
}

But I want to show the h2 heading of the post below the image and above the excerpt. I tried to use these 3 hooks to see if they have any effect on the post heading in archive page.

 remove_action('storefront_single_post', 'storefront_post_header');

 remove_action('storefront_page', 'storefront_page_header');

 remove_action('storefront_homepage', 'storefront_homepage_header', 10);

But unfortunately they have no effect at all. Even if I picked them out of a plugin to show/hide post titles (its called: storefront title toggle).

Then I searched in all files (I use Netbeans) of Storefront theme for the corresponding css class entry-header and entry-content, but I couldn't find help here, as there is no clear html structure where I can move the entry-header below the image.

Does anybody have an idea how to move this heading ?

enter image description here

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥20 怎么用dlib库的算法识别小麦病虫害
    • ¥15 华为ensp模拟器中S5700交换机在配置过程中老是反复重启
    • ¥15 java写代码遇到问题,求帮助
    • ¥15 uniapp uview http 如何实现统一的请求异常信息提示?
    • ¥15 有了解d3和topogram.js库的吗?有偿请教
    • ¥100 任意维数的K均值聚类
    • ¥15 stamps做sbas-insar,时序沉降图怎么画
    • ¥15 买了个传感器,根据商家发的代码和步骤使用但是代码报错了不会改,有没有人可以看看
    • ¥15 关于#Java#的问题,如何解决?
    • ¥15 加热介质是液体,换热器壳侧导热系数和总的导热系数怎么算