tom*_*mer 3 html php wordpress
我有一个wordpress博客,我想稍微定制它.我知道CSS和HTML但不知道php.根据我的理解,php应该调用html代码,所以如果我能找到html代码,我将很容易自定义我的博客.
问题是,我找不到html代码.我看了外观 - >编辑器,这是所有的PHP文件和一个CSS.
有人知道如何编辑HTML代码/找到它?
谢谢
小智 7
如果你想编辑wordpress主题html,css等,请按照步骤操作.
始终使用儿童主题
在开始编辑WordPress主题之前,请创建一个子主题.子主题很重要,因为它们可以保护您的原始主题文件.
 Appearance ? Themes->your child theme-> activate
编辑WordPress主题HTML
转到 WordPress仪表板中的外观→编辑器,然后选择已激活的子主题.
有index.php,functions.php,header.php,footer.php等.
在最基本的形式中,PHP从您的WordPress网站获取内容并在HTML页面中输出.请具体看一下这部分代码:
<div class="site-info">
<?php do_action( 'twentyfourteen_credits' ); ?>
 <a href="<?php echo esc_url( __( 'http://wordpress.org/', 'twentyfourteen' ) ); ?>"><?php printf( __( 'Proudly powered by %s', 'twentyfourteen' ), 'WordPress' ); ?></a>
 </div><!-- .site-info -->
该代码转换为此HTML:
 <div class="site-info">
 <a href="http://wordpress.org">Proudly powered by WordPress</a>
 </div><!-- .site-info -->
尝试像上面的代码php和html一样理解.你可以轻松编辑它.
编辑WordPress主题CSS
     Appearance ? Editor->style.css(child theme). 
你可以改变详细参考的风格点击这里
| 归档时间: | 
 | 
| 查看次数: | 49496 次 | 
| 最近记录: |