、wordpress模板放在wp_content文件下的themes文件夹2、、、启用模板5、:<?phpbloginfo('stylesheet_url');?>6、获取主题存放路径:<?phpbloginfo('template_directory');?>7、修改css文件里的调用路径Wordpres模板修改3、/*ThemeName:wordpresstheme01ThemeURI:ription:asimplebolgthemeAuthor:xixiAuthorURI:ion::white,blog,wxos,blue*/Wordpres模板修改调用CSS文件修改图片路径调用banner广告;先修改js文件路径<scriptsrc="<?phpbloginfo('stylesheet_directory');?>/"></script>然后修改js里面的图片路径,注意这个是绝对路径:8080/blog/wp-content/themes/pany/<?phpget_header();?><?phpget_footer();?><?phpget_sidebar();?>、Title调用:<title><?phpif(is_home()||is_search()){bloginfo('name');}else{wp_title('');print"-";bloginfo('name');}?></title>2、编码方式调用:<metahttp-equiv="Content-Type"content="text/html;charset=<?phpbloginfo('charset');?>"/><?phpwp_head();?>3、网站栏目调用:<?phpwp_list_categories('title_li=0&orderby=name&show_count=0&depth=2');?><?phpechoget_option('home');?><?phpwp_list_cats('sort_column=name&optioncount=1&hierarchical=1&hide_empty=0&child_of=10');?>页面调用:<?phpwp_list_pages('sort_column=menu_order&title_li=&depth=2&include=');?>,启用缩略图1、首页图片展示代码:<?phpif(have_posts()):?><?phpquery_posts('cat=3'.$mcatID.'&caller_get_posts=1&showposts=6');?><?phpwhile(have_posts()):the_post();?> <li><?phpif(function_exists('wp_thumbnails_for_homepage')){wp_thumbnails_for_homepage();}?><br/><p><ahref="<?phpthe_permalink()?>"><?phpthe_title();?></a></p></li> <?phpendwhile;?><?phpelse:?><?phpendif;?>
seo网站建设企业网站的仿制 来自淘豆网www.taodocs.com转载请标明出处.