简体   繁体   English

修改Avada WordPress主题

[英]Modifying Avada WordPress Theme

I am trying to modify the Avada WordPress Theme. 我正在尝试修改Avada WordPress主题。 It doesn't seem to write header tags in H1 so I've been looking through the code in /themes/Avada/ to see if I can modify it myself. 它似乎没有在H1中编写标题标签,因此我一直在浏览/ themes / Avada /中的代码,以查看是否可以自己修改它。

I've looked in these files: header.php, page.php, index.php and I can't seem to find anything with the headers. 我查看了以下文件:header.php,page.php,index.php,但似乎无法在标头中找到任何内容。

Looking at their page.php 看他们的page.php

<div class="post-content">
            <?php the_content(); ?>
            <?php fusion_link_pages(); ?>
        </div>

Does anyone know where the_content(); 有谁知道the_content(); calls from? 来电?

You can change the header tags for posts in the file single.php. 您可以在文件single.php中更改帖子的标题标签。

You need to look for this code: 您需要查找以下代码:

avada_render_post_title( $post->ID, false, '', '2' )

And change the 2 to a 1 (which represents the H1) tag. 并将2更改为1(代表H1)标签。

avada_render_post_title( $post->ID, false, '', '1' )

Now your posts title should appear using the H1 tag. 现在,您的帖子标题应使用H1标签显示。

Source: Avada SEO 资料来源: Avada SEO

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM