Home › Forums › Themes Support › Claue › About meta tag in head
- This topic has 10 replies, 3 voices, and was last updated 7 years, 4 months ago by moko2man.
-
AuthorPosts
-
-
July 26, 2017 at 3:31 pm #7012
Hi. I am using your theme.
Are there some code about meta tag(og:title, og:url, og:image) in Claue theme? This meta tag makes my site trouble.
1. Search optimization problem : It shows no site-title in search-engine.
2. Important plugin error: This plugin(main function of my site) make meta tag(og:title, og:url, og:image, etc). but other meta tag make confusing all meta tag. This makes some errors.I changed to another theme. These other meta tag don’t appear.
So, Are there some code about meta tag (og:title, og:url, og:image etc) in Clue theme?
Thank you.
-
July 26, 2017 at 5:09 pm #7013
Hi,
Yes, our theme include some meta tag for product social share.
You can add below code to functions.php in claue-child
<iframe src=”https://pastebin.com/embed_iframe/FwPS180f” style=”border:none;width:100%”></iframe>
or use Yoast Seo Plugin to remove exist.
Best regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
July 27, 2017 at 7:18 am #7111
Thank you for your reply.
The iframe code above you wrote, is that right in function.php of child theme? iframe tag do work in fuction.php??
Can you tell me where those code(about meta tag) is?
-
July 27, 2017 at 10:59 am #7117
Sorry i attach wrong please add code here
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
July 27, 2017 at 12:11 pm #7118
I added those codes in function.php of childtheme. But it doesn’t work. I deleted all caches and same.
Can you check action name for me?
-
July 27, 2017 at 5:39 pm #7129
Sorry because inconvenience.
You change prev code to
function jas_claue_social_meta() { return; }
Best regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio-
July 28, 2017 at 1:10 pm #7195
You mean, I should add below codes in function.php in childtheme?
add_action( ‘wp_head’, ‘remove_my_action’ );
function remove_my_action(){
remove_action( ‘wp_head’, ‘jas_claue_social_meta’ );
function jas_claue_social_meta() {
return;
}
}?? ( this makes error..)
What does it mean “change prev code”??
-
-
July 28, 2017 at 6:03 pm #7203
Hi,
I mean replace prev code
to
function jas_claue_social_meta() { return; }
Best regards
Harry
Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio -
July 30, 2017 at 8:33 am #7287
Thanks for your reply. That code works.
In fact, I need that code in a front-page and specific page(page-id=’1111′): I don’t need meta-tag that is produced by Claue theme in front-page and specific page. So I edited above code like this. But, it doesn’t work. can you help me?
function my_meta_delete(){
global $post;
if(is_home() || $post->ID == ‘1111’){
function jas_claue_social_meta() {
return;
}
}
}
my_meta_delete(); -
July 30, 2017 at 12:18 pm #7303
Hi,
Please use this code instead
-
July 31, 2017 at 9:16 am #7379
Wow. I really thank you. Have a good day.
-
-
AuthorPosts
You must be logged in to reply to this topic.