Wrong meta tag for Facebook Opengraph
Best WordPress theme for festivals or other events with responsive, clean and unique design.
- GK User
- Tue Oct 20, 2015 10:22 am
Using Fest, Open Graph Facebook metatags are invalid: they must be written as
To fix it, change in file gavern/helpers/helpers.layout.php (lines 273 to 293) every recurrence of it, like this one:
to this one
- Code: Select all
<meta property="og:...">
- Code: Select all
<meta name="og:...">
To fix it, change in file gavern/helpers/helpers.layout.php (lines 273 to 293) every recurrence of it, like this one:
- Code: Select all
echo apply_filters('gavern_og_type', '<meta name="og:type" ....
to this one
- Code: Select all
echo apply_filters('gavern_og_type', '<meta property="og:type" ....
-
- Fresh Boarder
- GK User
- Tue Oct 20, 2015 10:37 am
... and they are completely missing from the homepage!
Quick fix (line 297 in file gavern/helpers/helpers.layout.php)
Quick fix (line 297 in file gavern/helpers/helpers.layout.php)
- Code: Select all
} elseif(is_home() || is_front_page()) {
echo '<meta property="og:type" content="website" />' . "\n";
echo '<meta property="og:url" content="'.home_url().'" />' . "\n";
echo apply_filters('gavern_og_title', '<meta property="og:title" content="'.get_bloginfo('name').'" />' . "\n");
if(get_option($tpl->name . '_seo_homepage_desc') == 'custom') {
echo apply_filters('gavern_meta_description', '<meta property="og:description" content="'.get_option($tpl->name . '_seo_homepage_desc_value').'" />');
}
}
-
- Fresh Boarder
- GK User
- Tue Oct 20, 2015 1:16 pm
Hi,
Thank you for the solution. We'll check it and add to next theme updates.
Thank you for the solution. We'll check it and add to next theme updates.
-
- Moderator
3 posts
• Page 1 of 1