Community Forums › Forums › Archived Forums › Design Tips and Tricks › Remove the tagline from posts in eleven40
- This topic has 10 replies, 3 voices, and was last updated 11 years, 8 months ago by
Brad Dalton.
-
AuthorPosts
-
October 9, 2013 at 5:46 am #65944
pjwdesign
MemberI have been able to remove the tagline that appears at the top of eleven 40 from pages but I cannot remove it from posts (I just want it on the ome page) . This was the code I used
//* Reposition the site description
remove_action( ‘genesis_site_description’, ‘genesis_seo_site_description’ );
add_action( ‘genesis_before_content_sidebar_wrap’, ‘sp_custom_header’ );
function sp_custom_header() {if (!is_page()) {
?>
<h2 class=”site-description” itemprop=”description”>TAGLINE GOES HERE</h2>
<?php
}
}Many thanks
October 9, 2013 at 6:28 am #65947Brad Dalton
ParticipantYou can add these conditionals to the code:
if ( !is_page() || !single() ) {Or you could use this:
if ( is_front_page() ) {
October 9, 2013 at 6:49 am #65948pjwdesign
MemberThank you Brad I tried the following..(below)....this caused the pages to be blank (tagline still in posts) am I doing something wrong with the code? Many thanks
//* Reposition the site description
remove_action( 'genesis_site_description', 'genesis_seo_site_description' );
add_action( 'genesis_before_content_sidebar_wrap', 'sp_custom_header' );
function sp_custom_header() {if (!is_page() || !single() ) {
?>
<h2 class="site-description" itemprop="description">Header Here</h2>
<?php
}
}October 9, 2013 at 6:58 am #65953Brad Dalton
ParticipantOctober 9, 2013 at 7:42 am #65962pjwdesign
MemberMany Thanks Brad getting nearer....Both !is_front_page() and !is_single() (used seperately) remove header from posts and pages which is great but also from the Home Page.....
//* Reposition the site description
remove_action( ‘genesis_site_description’, ‘genesis_seo_site_description’ );
add_action( ‘genesis_before_content_sidebar_wrap’, ‘sp_custom_header’ );
function sp_custom_header() {if ( !is_front_page() ) {
?>
<h2 class="site-description" itemprop="description">Header Here</h2>
<?php
}
}October 9, 2013 at 7:44 am #65963Brad Dalton
ParticipantOctober 9, 2013 at 8:04 am #65966pjwdesign
MemberI did (see below) this in place now....again not showing on home page as well as pages/posts
//* Reposition the site description
remove_action( ‘genesis_site_description’, ‘genesis_seo_site_description’ );
add_action( ‘genesis_before_content_sidebar_wrap’, ‘sp_custom_header’ );
function sp_custom_header() {if ( !is_front_page() ) {
?>
<h2 class="site-description" itemprop="description">Header here</h2>
<?php
}
}If it helps url of site is jrabutler.com. Many thanks
October 9, 2013 at 8:33 am #65968Brad Dalton
ParticipantOctober 9, 2013 at 10:37 am #65980pjwdesign
MemberThanks for patience Brad- I did try without the ! - will take a look at the suggested link
June 19, 2014 at 1:51 pm #110620socialspark
MemberI need to remove the tagline from all pages of my site, but I'm not having any luck using the code from the previous posts.
Where does this code need to go exactly? Into the functions.php file?
Here is a link to my site: http://postbankruptcy.flywheelsites.com/. You can't see the site description, but it is directly under the black header area...
June 19, 2014 at 4:56 pm #110665Brad Dalton
ParticipantTry this http://wpsites.net/web-design/eleven40-pro-replace-site-description-tagline-with-widget/
If you only want to remove the tagline, only use the first line of code in the Gist. Untested for that specific solution.
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.