i Astra主题页面上的不同徽标

问题描述

我正在使用Astra主题,并希望为特定页面使用不同的徽标。

我找到了以下过滤器:“ astra_replace_header_logo”,以及与类似问题有关的另一则帖子,但不完全是:https://wordpress.stackexchange.com/questions/344145/how-to-have-different-site-identity-logos-on-each-page-on-astra-theme

现在我想出了一个行不通的方法-它仅在图像路径中输出“ /”

   function filter_astra_replace_header_logo( $image ) {
        if( is_page('12') ||  is_tree('12')) {
            $image = '/wp-content/themes/nordichotels/assets/logo_hygge.svg';
            return $image;
        }
            return $image;
    }
    add_filter( 'astra_replace_header_logo','filter_astra_replace_header_logo' );

有人可以指导或帮助我吗?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)