Tagged: x
-
AuthorPosts
-
July 6, 2016 at 9:28 am #1074826
KobberParticipantHi,
I can see that on my main page (welcome page) I have a double H1. I want to be in full control of my headings, so how can I remove the H1 in the background?
Thanks in advance!
July 6, 2016 at 10:05 am #1074893
JoaoModeratorHi There,
This is possible by editing the page templates. Would you mind sharing your URL with us so we can assist you?
While you get back to us, because this requires a template change, I’d advise that you setup a child theme. This allows you to make code changes that won’t be overwritten when an X update is released. After your child theme is setup, please review how we recommend making template changes in Customization Best Practices.
https://community.theme.co/kb/customization-best-practices/
Thanks
Joao
July 6, 2016 at 10:10 am #1074904
KobberParticipantThis reply has been marked as private.July 6, 2016 at 12:38 pm #1075117
JoaoModeratorHi There,
In order to achieve that you need to create a Child Theme otherwise once you update your theme your modifications will be lost.
In The meanwhile please have a look at this article.
Hope it helps
Joao
July 7, 2016 at 6:48 am #1076313
KobberParticipantHi,
I’ve installed the child theme now. What’s next?
I’ve read the article, but I have to say that the article is old, and to my knowledge (I have a master in online marketing management) double H1 is no good. Maybe I’m wrong since the first is hidden in the header, but I want to be in full control of SEO.
July 7, 2016 at 8:33 am #1076442
JoaoModeratorHi There,
Thanks for writing in!
Then navigate to your child theme’s /framework/views/global directory create a file named _brand.php and paste the code below:
<?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 . '">'; ?> <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 it helps!
Joao
July 8, 2016 at 12:49 am #1077542
KobberParticipantOh… I don’t quite know how to create a php-file. Can you help me with this?
July 8, 2016 at 4:26 am #1077699
Rue NelModeratorHello Again,
Simply follow the following steps below:
1] Using Notepad or TextEdit or Sublime Text or any text editor, please create a new file in your local machine.
2] Insert the following code into that new 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 . '">'; ?> <a href="<?php echo home_url( '/' ); ?>" class="<?php x_brand_class(); ?>" title="<?php echo $site_description; ?>"> <?php echo ( $logo == '' ) ? $site_name : $site_logo; ?> </a>3] Save the file named as
_brand.php
4] Upload this file to your server in the child theme’s folder
wp-content/themes/x-child/framework/views/global/Please let us know how it goes.
July 8, 2016 at 5:30 am #1077740
KobberParticipantHi again,
Well I did it, but after checking several SEO analyze tools, I can’t see any difference.
July 8, 2016 at 5:46 am #1077751
JvPParticipantWhy are there 2 H1’s to begin with?
July 8, 2016 at 7:13 am #1077805
KobberParticipantWell I’ve set one, which is the one keyword or sentence I would like for that page. What the idea is with the hidden one (which is the same as the domain name), I can’t tell.
July 8, 2016 at 8:41 am #1077879
Paul RModeratorHi,
I checked the code in your homepage and I can only see one h1
http://screencast.com/t/LqyBVYp22xI
May I know what seo tool you are using.
Thanks
July 8, 2016 at 8:51 am #1077891
KobberParticipantI’ve just checked again, and it looks fine now.
Thanks for your help and have a nice weekend 🙂
July 8, 2016 at 11:20 am #1078080
JoaoModeratorGlad to hear it.
Great weekend 4 you too 🙂
Joao
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1074826 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
