Will Google still see my title?

I had hidden the titles on my pages/posts with

.entry-title {
display: none;
}

and then made my own title on the pages. With my own title being set as h1. So for SEO purposes will the title still be seen or do I need to change my own title or be the actual title?

My site is https://digixid.com/

Hi There,

Thank you for writing in, yes Google will still see a display: none; content.

Do not hide the entry-title, utilize that as the actual title instead.

Cheers!

I prefer to hide the entry title and put my own as it allows for more customization. But just to clarify, if Google can still see the title it shouldn’t negatively affect SEO correct?

Hi @EricDF94,

Yes, it’s still visible from Google and may affect your SEO since h1 is one of the main title.

I recommend switching to a blank template and use a custom headline with h1 as title, or no title at all.

The blank templates doesn’t have a default title.

Thanks!

Ok so that works for pages but what should I do for posts? Individual posts don’t allow you to change them and the global settings are for full width and sidebars but I don’t see any other options.

Also all of my pages seem to have a H1 of Digixid but I have no idea where it is coming from, could you maybe take a look? If I put my own H1 at the top of the page like I want to it then says I have 2 H1s.

Hello There,

The h1 is coming from the _brand.php file which is set in the theme by default.
Since you have your child theme active and ready, please 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/legacy/cranium/headers/views/global/

You will need to create the folder path since it does not exist in your child theme yet.

Please let us know how it goes.

That seems to have worked! Just out of curiosity why would it auto put your brand into H1? Everything I see says to use H1 only once and for the most important content on your page. Am I losing anything by disabling it?

Hey There,

That was added on purpose and hidden visually. Since you added your own titles using H1 tag, you are not losing anything. It must be disabled so that there is only one h1 on the page.

Hope this helps.

The last thing is how to enable blank templates for posts? I know how to for pages but not posts.

Hello There,

To create a custom templates for the post, please review this thread: https://theme.co/apex/forum/t/using-post-type-templates/13698/2

Hope this helps.

I actually decided to make a new post type and rework a few things but I have one small issue. All the posts with the new post type have the author and date at the bottom and I’m not sure how to remove it. I added it with Custom Post Type UI and the post type is called “Websites” Thanks for all the help by the way!

Hi @EricDF94,

Since it only inherits the main post type template, then they will too have those data. Would you mind providing a sample URL for this new post type?

Author and date post meta are usually near the titles, perhaps it’s added through custom code?

Thanks!

Oh sorry it is actually below the featured image, it threw me off because I usually have that disabled.

Here is a page https://digixid.com/websites/example/

And if I wanted to hide the featured image for the post type(I need the featured image still for a different plugin) could I use

.single-post .entry-featured {
display:none;
}

and swap out post for my custom post type or is there something else I would have to do?

I put login info and some more info on the post types in this thread if you need it https://theme.co/apex/forum/t/essential-grid-filters-not-showing/44335

Hi @EricDF94,

I see, thanks for the clarification. What you need is this CSS,

.single-websites  .entry-featured,
.single-websites .p-meta {
display: none;
}

This should hide both post meta and featured image on website single post page. The key is .single-{post_type}.

Hope this helps.

Thanks!

That fixed it. Thanks a ton for all the help!

You’re welcome!
It’s good to know that @Rad was able to help you out.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.