Wordpress header and search engine optimization issue - php

I would like to optimize the header of my wordpress website-blog. By default I see only these entries:
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title><?php wp_title( '|', true, 'right' ); ?></title>
Well, I would like to add a description tag, keywords and facebook Open Graph. But as I do, when sharing a blog post on facebook, the post description gets overwrited and this is not what I want.
How could I have a default description tag for my business, but keep the blog post description as well in case I am sharing some content?
Thanks.

Did you try this plugin: https://wordpress.org/plugins/add-meta-tags/
It seems to accept site-wide meta tags as well as content-related ones.

Facebook will rewrite those descriptions, not Wordpress.
You have to add another meta tags for Facebook, called Open Graph tags, such as og:title, og:description and others.

Related

Avoid mobile devices responsiveness Wordpress Elementor

I have tried different solutions found in the web but with no success. I have tried already to remove the string from the file header.php but nothing happened.
The client wants the website to look exactly the same as the desktop version in all the mobile devices, so I have to delete what makes responsive my theme.
I'm using the theme "Twenty Twelve" from Wordpress and Elementor as visual editor.
Does anyone know how I can reproduce this? Thanks in advance for your help!
You need to remove Viewport meta tag from the header file check below
<meta name="viewport" content="width=device-width, initial-scale=1.0">
Change Mobile & Tablet Breakpoints
You can set the mobile and tablet breakpoint values.
Go to Elementor > Settings > Style Tab, and set the breakpoint value for mobile and tablet
Save your changes
Go to Elementor > Tools > General Tab > Regenerate CSS, click Regenerate Files
set the breakpoint value = 0
change initial-scale=1.0 to initial-scale=0 in meta tag

Change content Meta Tags for Facebook in PrestaShop 1.7

I am currently working on a module and got stuck on a problem. In PrestaShop 1.7 there are some meta tags that are processed by Facebook in case a product URL is shared on the Facebook wall.
<meta property="og:type" content="product">
<meta property="og:url" content="http://www.xyzexample.com/en/evening-dresses/4-16-printed-dress.html">
<meta property="og:title" content="Printed Dress">
<meta property="og:site_name" content="Test Shop 17">
<meta property="og:description" content="Printed evening dress with straight sleeves with black thin waist belt and ruffled linings.">
I am unable to change the content of these tags on run-time through my module.
I also tried to change the content through JS but Facebook is not parsing the updated value.
Any kind of help on this is highly appreciated.

I want the search engine to crawl my page instead of dt_benefits

I'm running a WordPress site. When I search a specific page in search engine, it gives me other things besides that page which I don't want. Could someone tell how to avoid such things (dt_benefits) from being crawled?
To have crawlers ignore your page, you need to add a meta tag <meta name="robots" content="noindex" /> to each page you'd like not indexed. Alternatively, since you're using Wordpress, I'd recommend installing Yoast SEO Plugin and noindex your pages through there.

Share Button is taking only recent post title and excerpts in all the shares button

I have encounter another problem right now that all my share button in the post is getting the recent post that i had posted title and excerpts. I needed each post share with its title and excerpts. I am using Facebook Open Graph Meta Tags for WordPress plugins to set the image and meta tags but it worked only for image.
My website is http://shareeveryone.com/questions
I had set the meta tag as below:
<meta name="og:title" content="<?php the_title(); ?>" />
<meta name="og:description" content="<?php the_excerpt(); ?>" />

Echo page description from Yoast on wordpress

I have installed Wordpress SEO by Yoast onto a site Im building. They have an area when you can add the description for the meta information.
However I want to add this to a twitter meta tag:
<meta name="twitter:description" content="">
Does anyone know how to grab the description and output it for a single page?
Cheers
You can use
<?php echo wpseo_get_value('metadesc'); ?>
wpseo_get_value('metadesc'); has been deprecated
Please use WPSEO_Meta::get_value("metadesc");
<?php echo WPSEO_Meta::get_value("metadesc"); ?>
If you need to add twitter:description meta data. Please follow below steps.
- Login to admin panel
- Go to menu item SEO->Social
- Uncheck the checkbox Add Open Graph meta data
- Go to tab Twitter
- Check the checkbox Add Twitter card meta data
- Click on save changes
Now if you visit the post page or any single page, you can see a meta tag with name twitter:description added to the head.
Hope this works for you

Categories