【问题标题】:Add an image to header of Enfold theme将图像添加到 Enfold 主题的标题
【发布时间】:2017-02-02 11:51:30
【问题描述】:

我有一个带有 Enfold-child 主题的 WP 网站。对于标题,我选择将公司徽标放在左上角,将主菜单放在公司徽标下方。我想在公司徽标的右侧添加一张图片,但我不尝试这样做。 header.php 的最后一部分如下

<?php 
    if(!$blank) //blank templates dont display header nor footer
    { 
         //fetch the template file that holds the main menu, located in includes/helper-menu-main.php
         get_template_part( 'includes/helper', 'main-menu' );

    } ?>

    <div id='main' class='all_colors' data-scroll-offset='<?php echo avia_header_setting('header_scroll_offset'); ?>'>

    <?php 

        if(isset($avia_config['temp_logo_container'])) echo $avia_config['temp_logo_container'];
        do_action('ava_after_main_container'); 

    ?>

我必须修改这个文件来添加图像吗?你能帮我吗? 谢谢!

【问题讨论】:

    标签: wordpress header custom-headers tenfold


    【解决方案1】:

    试试这个。这是来自 Enfold 的知识库文章,详细介绍了如何将 Widget 区域添加到标题以添加自定义代码,即图像。

    这正是我们用来做那件事的。

    http://www.kriesi.at/documentation/enfold/adding-a-widget-area-to-the-header/

    【讨论】:

      【解决方案2】:

      如果你不想接触 header.php,你可以考虑使用 css ::after 选择器

      【讨论】:

        猜你喜欢
        • 2016-10-09
        • 2016-08-25
        • 1970-01-01
        • 2010-09-24
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2016-08-21
        • 1970-01-01
        相关资源
        最近更新 更多