Tagged: x
-
AuthorPosts
-
June 12, 2016 at 7:09 pm #1038686
Shervin6623ParticipantHi
I use sequake & it shows me that some of my pages has multiple H1 tags, check this for example:
http://www.pestguru.com.au/pest-control-prices/& see this picture I Attached,
please help me to fix this 🙂
many thanksJune 12, 2016 at 7:40 pm #1038712
Shervin6623ParticipantThe same problem with many other pages, although I disabled page title in all of them
check for the main page: http://www.pestguru.com.au/
it say that my H1 tag is Pest Guru! I cannot find it anywhere! & this is very important for me to fix in case of rankingJune 13, 2016 at 1:09 am #1039074
Rue NelModeratorJune 13, 2016 at 6:08 am #1039389
Shervin6623ParticipantThanks Rue I fix the price page,
I use firebug for my homepage & it shows that the theme uses logo alt tag as H1 tag, how can I fix that one ?
many thanks
June 13, 2016 at 7:34 am #1039493
Shervin6623ParticipantAny suggestion for homepage H1 tag?
June 13, 2016 at 8:04 am #1039532
Shervin6623ParticipantI Also have this problem with my Blog posts:
http://www.pestguru.com.au/garden-pests-identification-australia/
how can I disable post title? like page titleJune 13, 2016 at 8:07 am #1039541
Paul RModeratorHi,
To remove that, create file _brand.php in wp-content/themes/x-child/framework/views/global
and copy the code below into that file.<?php // ============================================================================= // VIEWS/GLOBAL/_BRAND.PHP // ----------------------------------------------------------------------------- // Outputs the brand. // ============================================================================= $site_name = get_bloginfo( 'name' ); $site_description = get_bloginfo( 'description' ); $logo = x_make_protocol_relative( x_get_option( 'x_logo' ) ); $site_logo = '<img src="' . $logo . '" alt="' . $site_description . '">'; ?> <?php echo ( is_front_page() ) ? '<div class="visually-hidden">' . $site_name . '</div>' : ''; ?> <a href="<?php echo home_url( '/' ); ?>" class="<?php x_brand_class(); ?>" title="<?php echo $site_description; ?>"> <?php echo ( $logo == '' ) ? $site_name : $site_logo; ?> </a>Hope that helps.
June 13, 2016 at 9:01 am #1039610
Shervin6623ParticipantDear Paul the code work great for the first page, I still have problem with blog posts, I can not disable the titles H1
June 13, 2016 at 11:05 am #1039820
JadeModeratorHi there,
Do you mean you want to change the h1 to something else? If so, create a file named _content-post-header.php in wp-content/themes/x-child/framework/views/ethos then add this code:
<?php // ============================================================================= // VIEWS/ETHOS/_CONTENT-POST-HEADER.PHP // ----------------------------------------------------------------------------- // Standard <header> output for various posts. // ============================================================================= ?> <header class="entry-header"> <?php if ( is_single() ) : ?> <?php x_entry_navigation(); ?> <!-- Change h1 here --> <h1 class="entry-title"><?php the_title(); ?></h1> <?php else : ?> <h2 class="entry-title"> <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to: "%s"', '__x__' ), the_title_attribute( 'echo=0' ) ) ); ?>"><?php x_the_alternate_title(); ?></a> </h2> <?php endif; ?> <?php x_ethos_entry_meta(); ?> </header>I’ve added the indication in the code where you could change the h1 on the part that says
<!-- Change h1 here -->Hope this helps.
June 13, 2016 at 8:06 pm #1040611
Shervin6623ParticipantDear Jade,
I add the code but not working,
I want this, please have a look at this page: http://www.pestguru.com.au/effective-mosquito-repellent-remedies/
You see in the picture it show it has two H1, one from title another one from context (that I added) – The thing is with pages, you can disable the titles from page edit & just add yours in the context but for posts we dont have such option, so if I add any H1, it will be more than two.So how can I fix this one?
June 14, 2016 at 4:32 am #1041061
Paul RModeratorHi,
Please note that you still need to change the h1 in the code provided above.
eg.
<?php // ============================================================================= // VIEWS/ETHOS/_CONTENT-POST-HEADER.PHP // ----------------------------------------------------------------------------- // Standard <header> output for various posts. // ============================================================================= ?> <header class="entry-header"> <?php if ( is_single() ) : ?> <?php x_entry_navigation(); ?> <!-- Change h1 here --> <div class="entry-title"><?php the_title(); ?></div> <?php else : ?> <h2 class="entry-title"> <a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to: "%s"', '__x__' ), the_title_attribute( 'echo=0' ) ) ); ?>"><?php x_the_alternate_title(); ?></a> </h2> <?php endif; ?> <?php x_ethos_entry_meta(); ?> </header>Hope that helps.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1038686 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>

