SEO - Individual meta-description and editing meta-title for each site w/o plugin
-
wrote on Sep 3, 2020, 1:22 PM last edited by
Hi, laytheme automatically uses the same meta-description for each site. Is there a workaround to define individual meta-descriptions and edit meta-titles for each site manually - without plugins like Yoast or what ever, there always seems to be problems with that. it also can be a not so elegant workaround.
Best
Andreas -
Global Moderatorwrote on Sep 8, 2020, 8:02 AM last edited by Richard Sep 8, 2020, 9:09 AM
Dear @kappe
You can enter your own Meta Information in 'Lay Options - Custom CSS & HTML"
Is this what you are looking for?
https://www.w3schools.com/tags/tag_meta.asp
https://hostpapasupport.com/add-meta-tags-website/
Let me know :)
Best Wishes
Richard -
wrote on Sep 9, 2020, 6:27 PM last edited by
Hi Richard, yes, I know the possibility to change metas with custom css globally. But can you give me a tip how to address a single page to add an individual meta description oder edit the meta title?
-
Hi Richard, yes, I know the possibility to change metas with custom css globally. But can you give me a tip how to address a single page to add an individual meta description oder edit the meta title?
wrote on Jan 4, 2021, 7:42 PM last edited by@kappe Hi, I just believe this can be a solution for this. I don't know is it good for site, or is it safe but it works for me, so I want to share.
I just add this code to, Appearance | Theme Editor | Theme Functions (functions.php) files. I am just an amateur but I think this works for me. I just change the Page Names, Keywords and Descriptions.
function add_meta_data_firefog() { if ( is_page('Page-Name-One') ) { echo'<meta name="Keywords" content="Keyword One, Keywords Two">'; echo'<meta name="Description" content="Page Descriptions.">'; } if ( is_page('Page-Name-Two') ) { echo'<meta name="Keywords" content="Keyword One, Keywords Two">'; echo'<meta name="Description" content="Page Descriptions.">'; } if ( is_page('Page-Name-Three') ) { echo'<meta name="Keywords" content="Keyword One, Keywords Two">'; echo'<meta name="Description" content="Page Descriptions.">'; } } add_action('wp_head', 'add_meta_data_firefog');
-
I also code custom websites or custom Lay features.
💿 Email me here: 💿
info@laytheme.com
Before you post:
- When using a WordPress Cache plugin, disable it or clear your cache.
- Update Lay Theme and all Lay Theme Addons
- Disable all Plugins
- Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"
This often solves issues you might run into
When you post:
- Post a link to where the problem is
- Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
- If the problem is difficult to explain, post screenshots / link to a video to explain it