- This topic has 5 replies, 2 voices, and was last updated 9 years ago by Sakin.
-
AuthorPosts
-
September 18, 2015 at 12:42 am #67064219incMember
Hi – excellent free theme, thanks! My site is showing 2 titles on every page, because i start each page with a H1 … so it’s showing the page title (with link to itself) and the h1. this looks funny. I think the page title is more important for SEO but i’m not sure? And if I simply delete the H1 from my pages, how can i remove the link from the page title? e.g. http://www.219inc.com/www.guytronix.com/
September 18, 2015 at 9:46 pm #67091SakinKeymaster@219inc: But why are you adding in extra h1. The page tile is already in h1 tag. So, no need to add in. I suggest you to remove that extra h1 tag from your page. Just edit your page and remove extra title in your content and keep the title.
September 18, 2015 at 11:58 pm #67104219incMemberok i looked at the code, i can see now that the page creates it’s own H1 tag, so I can get rid of my own H1 tags – but how can I remove the link that is automatically created?
<h1 class="entry-title"><a href="http://www.219inc.com/www.guytronix.com/speakers/" title="Permalink to Speakers" rel="bookmark">Speakers</a></h1>
<< HOW DO I REMOVE THE LINK? THE PAGE LINKS TO ITSELF, I WOULD LIKE TO REMOVE THIS.September 19, 2015 at 12:17 am #67106SakinKeymaster@219inc: You can hide that by adding in the following css in “Appearance => Theme Options => Custom CSS” box:
#content .entry-header { display: none; }
But if you want to remove it, then you need to build child theme. For child theme, refer to http://catchthemes.com/blog/create-child-theme-wordpress/. You can also download child theme from there. Then you can copy
content-page.php
file to your child theme and remove the following code:<header class="entry-header"> <h1 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'catch-evolution' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h1> </header><!-- .entry-header -->
September 19, 2015 at 12:46 am #67109219incMemberSo the only way to remove the permalink, but still keep the automatically generated H1 text, is to create a child theme? Thanks! excellent support!
September 19, 2015 at 8:14 am #67120SakinKeymaster@219inc: Yes, you are right. If you only want to remove permalink then replace following code
<h1 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'catch-evolution' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h1>
with the following:
<h1 class="entry-title"><?php the_title(); ?></h1>
-
AuthorPosts
- The topic ‘Title and H1 – which to remove/how to remove?’ is closed to new replies.