How to remove blog name and description on banner from Mystique theme?
-
How can i do it? Here is the code:
<?php /* Mystique/digitalnature */ ?>
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.1//EN” “https://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd”>
<?php
$seo = get_mystique_option(‘seo’);
global $post;
if($seo):
if(is_home()):
$description = get_bloginfo(‘description’);
elseif(is_category()):
foreach((get_the_category()) as $category) {
$description = category_description();
}
else:
$tags = wp_get_post_tags($post->ID);
$description = strip_content(get_the_excerpt($post->ID), 20);
endif;
endif;
?>
<html xmlns=”https://www.w3.org/1999/xhtml” <?php //language_attributes(); ?>><head profile=”https://gmpg.org/xfn/11″>
<meta http-equiv=”Content-Type” content=”<?php bloginfo(‘html_type’); ?>; charset=<?php bloginfo(‘charset’); ?>” />
<?php
if($seo):
if(($description) && !is_404()): ?>
<meta name=”description” content=”<?php echo $description; ?>” />
<?php endif;
endif; ?><title><?php wp_title(‘«’, true, ‘right’); if ($seo): if (get_query_var(‘cpage’) ) print ‘ Página ‘.get_query_var(‘cpage’).’ « ‘; endif;?> <?php bloginfo(‘name’); ?></title>
<link rel=”alternate” type=”application/rss+xml” title=”<?php bloginfo(‘name’); ?> RSS Feed” href=”<?php bloginfo(‘rss2_url’); ?>” />
<link rel=”alternate” type=”application/atom+xml” title=”<?php bloginfo(‘name’); ?> Atom Feed” href=”<?php bloginfo(‘atom_url’); ?>” />
<link rel=”pingback” href=”<?php bloginfo(‘pingback_url’); ?>” />
<link rel=”shortcut icon” href=”<?php bloginfo(‘template_directory’); ?>/favicon.ico” /><?php if ( is_singular() ) wp_enqueue_script( ‘comment-reply’ ); ?>
<?php if(get_mystique_option(‘jquery’)): ?>
<?php wp_enqueue_script(‘jquery’); ?>
<?php wp_enqueue_script(‘mystique’,get_bloginfo(‘template_url’).’/js/jquery.mystique.min.js’,array(),false,true); ?>
<?php endif; ?><?php wp_head(); ?>
</head>
<body class=”<?php mystique_body_class() ?>”>
<div id=”page”><div class=”shadow-left page-content header-wrapper”>
<div class=”shadow-right”><div id=”header” class=”bubbleTrigger”>
<div id=”site-title”><?php
// logo image?
if(get_mystique_option(‘logo’)): ?>
<h1 id=”logo”>/”><img src=”<?php echo get_mystique_option(‘logo’); ?>” title=”<?php bloginfo(‘name’); ?>” alt=”<?php bloginfo(‘name’); ?>” /></h1>
<?php else: ?>
<h1 id=”logo”>/”><?php bloginfo(‘name’); ?></h1>
<?php endif; ?><?php if(get_bloginfo(‘description’)): ?><p class=”headline”><?php bloginfo(‘description’); ?></p><?php endif; ?>
</div>
” class=”rss” title=”<?php _e(“RSS Feeds”,”mystique”); ?>”><span><?php _e(“RSS Feeds”,”mystique”); ?></span>
<ul id=”navigation”><?php
$navtype = get_mystique_option(‘navigation’);
if((get_option(‘show_on_front’)<>’page’) && ($navtype<>’categorias’)):
if(is_home() && !is_paged()): ?>
<li class=”current_page_item” id=”nav-home”>” title=”<?php _e(‘Página Inicial’,’mystique’); ?>”><span class=”title”><?php _e(‘Inicio’,’mystique’); ?></span><span class=”pointer”></span>
<?php else: ?>
<li id=”nav-home”>” title=”<?php _e(‘Ir para a Página Inicial’,’mystique’); ?>”><span class=”title”><?php _e(‘Inicio’,’mystique’); ?></span><span class=”pointer”></span>
<?php
endif;
endif; ?>
<?php
if($navtype==’categorias’):
echo preg_replace(‘@\<li([^>]*)>\<a([^>]*)>(.*?)\<\/a>@i’, ‘<li$1><span class=”title”>$3</span><span class=”pointer”></span>‘, wp_list_categories(‘show_count=0&echo=0&title_li=&exclude=’.get_mystique_option(‘exclude_from_nav’)));
elseif($navtype==’links’):$links = get_bookmarks(array(
‘orderby’ => ‘name’,
‘order’ => ‘ASC’,
‘limit’ => -1,
‘category’ => null,
‘category_name’ => get_mystique_option(‘navigation_links’),
‘hide_invisible’ => true,
‘show_updated’ => 0,
‘include’ => null,
‘exclude’ => get_mystique_option(‘exclude_from_nav’),
‘search’ => ‘.’));foreach ($links as $link)
echo ‘- link_url.'” target=”_blank”><span class=”title”>’.$link->link_name.'</span>
- ‘;
else:
echo preg_replace(‘@\<li([^>]*)>\<a([^>]*)>(.*?)\<\/a>@i’, ‘<li$1><span class=”title”>$3</span><span class=”pointer”></span>‘, wp_list_pages(‘echo=0&orderby=name&title_li=&exclude=’.get_mystique_option(‘exclude_from_nav’)));
endif;
?></div>
</div>
</div><!– left+right bottom shadow –>
<div class=”shadow-left page-content main-wrapper”>
<div class=”shadow-right”><?php if(is_page_template(‘featured-content.php’)): ?>
<div id=”featured-content” class=”withSlider”>
<!– block container –>
<div class=”slide-container”>
<ul class=”slides”><?php
$category = get_mystique_option(‘featured_content’);
$args = ‘showposts=5&orderby=rand’;
if($category) $args .= ‘&cat=’.$category;$query = new WP_Query($args);
$count = 1;
if ($query->have_posts()) : while ($query->have_posts()) : $query->the_post(); ?>
<!– slide (100%) –>
<li class=”slide slide-<?php echo $count; ?> featured-content”>
<div class=”slide-content”>
<div class=”details clearfix”>
<?php
$image = get_first_image();
if ($image) echo ‘<img height=”90″ src=”‘.$image.'” />‘; ?>
<h3><?php the_title(); ?></h3>
<div class=”summary”><?php echo strip_content(get_the_excerpt(), 16); ?></div>
</div>
” rel=”bookmark” class=”readmore”>Ler Mais
<div class=”clear”></div>
</div>
<!– /slide –>
<?php $count++; endwhile; endif; ?></div>
<!– /block container –>
</div>
<?php endif; ?>
- The topic ‘How to remove blog name and description on banner from Mystique theme?’ is closed to new replies.