-
AuthorPosts
-
August 19, 2014 at 6:36 am #87493
Hi,
http://www.trueweb.ch/blog/creazione-siti-intenet
as you can see I hided the post title and the blog’s name from the articles page with your help by adding some css code in the customizer.
you can see in the source code of that link that even if titles are hided they remain as invisible h1 titles. So I have two h1:
First one: the blog title
Second one: the article title<h1 class="entry-title">Creazione Siti Internet per Aziende Locali</h1>
<div class="x-landmark"> <h1 class="h-landmark"><span>TrueBlog</span></h1> </div>
I would like to automatically erase the h1 blog title and h1 article title that appears in every new article. Obviously for optimization purposes. Then I will add the h1 myself using short-codes…
thank you for your support
August 19, 2014 at 8:00 am #87545Hi Andrea,
First of all, I have couple of this want to mention
1. Please update your X theme and X shortcode, latest version is already 2.3.0 X theme and 2.3.4 X shortcode, you can follow the update guide from here -> http://theme.co/x/member/kb/updating-your-theme-and-plugins/
2. Please install X theme properly, I noticed it was set-up like this,
http://www.trueweb.ch/wp-content/themes/themeforest-5871901-x-the-theme-wordpress_theme/x/
it should be
http://www.trueweb.ch/wp-content/themes/x/
Please check out this video -> http://theme.co/x/member/kb/theme-installation/
Regarding about your issue, You need to set-up a child theme to do that,
You can follow this guide -> http://theme.co/x/member/kb/how-to-setup-child-themes/
To Remove
<div class="x-landmark"><h1 class="h-landmark"><span>TrueBlog</span></h1></div>
1. Copy this file
x/framework/views/renew/_landmark-header.php
and put it inside
x-child-renew/framework/views/renew/
2. Edit
x-child-renew/framework/views/renew/_landmark-header.php
line 46You’ll see this
<h1 class="h-landmark"><span><?php echo x_get_option( 'x_renew_blog_title' ); ?></span></h1>
Just delete that line, or to be more precise,
you’ll see this code, from line 39 – 48,
<?php elseif ( is_home() || is_single() ) : ?> <?php if ( x_is_portfolio_item() ) : ?> <h1 class="h-landmark"><span><?php echo x_get_parent_portfolio_title(); ?></span></h1> <?php else : ?> <h1 class="h-landmark"><span><?php echo x_get_option( 'x_renew_blog_title' ); ?></span></h1> <?php endif; ?>
Just delete
<h1 class="h-landmark"><span><?php echo x_get_option( 'x_renew_blog_title' ); ?></span></h1>
To Remove
<h1 class="entry-title">Creazione Siti Internet per Aziende Locali</h1>
1. Copy this file
x/framework/views/renew/_content-post-header.php
and put it inside
x-child-renew/framework/views/renew/
2. Edit
x-child-renew/framework/views/renew/_content-post-header.php
line 13You can remove this line
<h1 class="entry-title"><?php the_title(); ?></h1>
Hope that helps.
Cheers
August 22, 2014 at 8:42 am #90103thank you,
after your explanation I was able to set everything as wanted. now everything work perfectly. I installed also the renew child theme.
I would like to also to reduce the space between the “body” and the “header”.
Check the link: http://www.trueweb.ch/SEO-e-Motori-di-Ricerca
you see that there is a gap between the h2 title “Visibilità sui Motori di Ricerca – SEO e Contenuti” and the header. In the WP editor I didn’t putted spaces or gaps between the one and the other. The title is as up as it can.
I was not able to find the appropriate correction/file. Please can you resolve this issue?thanks a lot!
August 22, 2014 at 9:00 am #90119Hi Andrea,
Add the following CSS to hide the space:
.single .entry-featured { display: none; }
-
AuthorPosts