Page 1 of 1

Editing the keyword and description metatag with WebYep

Posted: Thu Apr 18, 2013 1:37 pm
by KAL
Hi,
how do i add description and keywords with WebYep?
I found this post viewtopic.php?f=6&t=1413
But where do I have to add this code snippet?
And how can I add description?

Thanks!
Best regards,
KAL

Re: Editing the keyword and description metatag with WebYep

Posted: Wed Jul 03, 2013 8:06 am
by Max
Hi Kal the

Code: Select all

<meta name="keywords" content="<?php if (!webyep_bIsEditMode()) webyep_shortText("keywords", false); ?>">


goes in the head of your document and then you have

Code: Select all

<?php if (webyep_bIsEditMode()) { echo "Keywords: "; webyep_shortText("keywords", false); } ?>

which goes somewhere on your page

what this does is control the first 'code element' content. This is needed because you wont be able to see that part from within a browser environment hence why you need two parts
So to recap: the first is inserted in the head part of your document and the second (to control the meta content from with a browser) needs to be added somewhere in the body of the document.

all the best max

Re: Editing the keyword and description metatag with WebYep

Posted: Thu Apr 20, 2017 10:27 am
by stuartspindlow
Hi,

Edit the meta tags with WebYep near the top. Use a unique title for each page. Edit using Notepad in Windows, TextEdit on Mac or any plain text editor:


<!-- EDIT THE NEXT THREE LINES -->

<title>Website Template</title>

<meta name="Description" content="Place your website description in this area. This is read by some search engines.">

<meta name="KeyWords" content="add, your, keywords and phrases in this area, separated, by, commas, this, is read by only a, few search, engines">

Re: Editing the keyword and description metatag with WebYep

Posted: Thu Apr 20, 2017 10:40 am
by Max
Hi stuart I think you may have been confused about what Kal was asking
Kal wanted to control the page title and page meta description with WebYep from within the browser environment not via a text editor

Kind regards Max