(此问题已解决。解决方案是编辑header.php文件)
主题是True Mag。
该页面现在有2个标题。顶部(简化的)是我制作的。第二个是主题。当你在页面上降低时,还有一个浮动标题。我想删除主题自己的标题。
主题的single.php现在看起来像这样:
<p style="background-color: #8D9FD9";>
<a href="http://www.webpage.org" style="font-size: 50px; color: #FFF; text-decoration: none"> Atyn</a> </p>
<?php if ( !defined( 'ABSPATH' ) ) exit;
COMMENTS... ...
global
$st_Options,
$st_Settings;
$st_ = array();
// Post format
$st_['format'] = get_post_format( $post->ID ) ? get_post_format( $post->ID ) : 'standard';
// Is title disabled?
$st_['title_disabled'] = st_get_post_meta( $post->ID, 'disable_title_value', true, 0 );
// Is breadcrumbs disabled?
$st_['breadcrumbs_disabled'] = st_get_post_meta( $post->ID, 'disable_breadcrumbs_value', true, 0 );
// Get custom sidebar
$st_['sidebar'] = st_get_post_meta( $post->ID, 'sidebar_value', true, 'Default Sidebar' );
// Get sidebar position
$st_['sidebar_position'] = st_get_post_meta( $post->ID, 'sidebar_position_value', true, 'right' );
// Re-define global $content_width if sidebar not exists
if ( $st_['sidebar_position'] == 'none' ) {
$content_width = $st_Options['global']['images']['large']['width']; }
else {
$content_width = $st_Options['global']['images']['post-image']['width']; }
/*===============================================
P O S T
Display a required post
===============================================*/
get_header();
?>
<div id="content-holder" class="sidebar-position-<?php echo $st_['sidebar_position']; ?>">
<div id="content-box">
<div>
<?php
当我删除“get header”时,它会破坏页面。我没有看到任何其他方式在页面上删除标题(或用我自己的替换它。)
感谢。
这是标题代码(我在这里插入它,因为它会包装注释):
<?php if ( !defined( 'ABSPATH' ) ) exit; ?><!DOCTYPE html>
&GT;
<head>
<title><?php wp_title( '-', true, 'right' ); ?></title>
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?>>
<div id="layout">
<div id="header">
<div id="header-layout">
<div id="posts-featured">
<?php
// Posts featured
get_template_part( '/includes/posts/featured' );
?>
<div class="clear"><!-- --></div>
</div>
<div id="header-holder">
<div id="menu" class="div-as-table <?php global $st_Settings; if ( !empty( $st_Settings['stickymenu'] ) && $st_Settings['stickymenu'] == 'no' ) echo 'no-sticky-menu' ?>">
<div>
<div>
<div id="logo" class="div-as-table">
<div>
<div>
<?php
// Logo
st_logo();
?>
</div>
</div>
</div><!-- #logo -->
<span id="menu-select"></span>
<?php
// Menu Primary
st_menu_primary();
?>
<div class="clear"><!-- --></div>
</div>
</div>
</div><!-- #menu -->
<div class="clear"><!-- --></div>
</div><!-- #header-holder -->
</div><!-- #header-layout -->
<div id="header-layout-2">
<div id="header-holder-2">
<?php
// Icons the Social
if ( function_exists( 'st_icons_social' ) ) {
st_icons_social(); }
// Menu Secondary
st_menu_secondary();
?>
<form action="<?php echo esc_url( home_url( '/' ) ); ?>" method="get" role="search" id="search-form-header">
<span></span>
<input
type="text"
name="s"
value=""
placeholder="<?php _e( 'Search...', 'strictthemes' ) ?>"
/>
</form>
<div class="clear"><!-- --></div>
</div><!-- #header-holder-2 -->
<?php
// Sidebar Ad A
if ( is_active_sidebar(4) ) {
get_template_part( '/includes/sidebars/sidebar_ad_a' ); }
?>
</div><!-- #header-layout-2 -->
</div><!-- #header -->
<div id="content-parent">
<div id="content-layout">
答案 0 :(得分:0)
最后摆脱了这个! :)
#headline {
line-height: 0px;
position: absolute;
top: -9999px;
left: -9999px;
如果您喜欢它们,我还将以下内容应用于主题的CSS:
.pathway, .item-content-gradient {
visibility:hidden;}
.about-author, .video-toolbar-inner, .widget-top-rated, .widget-top-viewed, .widget-top-commented, .widget-top-liked, .widget-border {
border:hidden;}
干杯!