Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Meta tags

Asked Modified Viewed 4,091 times
I
isuzucrewcab
I
  • Member, joined since
  • Contributed 70 posts on the community forums.
  • Started 32 threads in the forums
  • Started this discussions
asked
Member

Hi,

I am trying to add additional metatags to custom pages. I tried a simple page


<?
set_meta("author", "Steve Carter");
?>


but when I check the source, the tag does not show up.

Thanks
0 replies

2 posts

W
WEC
W
WEC 10
  • Veteran Member, joined since
  • Contributed 946 posts on the community forums.
  • Started 5 threads in the forums
answered
Veteran Member

You can add to the content of an existing meta by using the function add_to_meta().

You can replace the content of an existing meta by using the function set_meta().

If you wish to define a new meta and it's content, the you need to use the function add_to_head().

So you could try to use this in your custom page:

<?php
add_to_head("<meta name='author' content='Steve Carter' />");
?>
0 replies
I
isuzucrewcab
I
  • Member, joined since
  • Contributed 70 posts on the community forums.
  • Started 32 threads in the forums
  • Started this discussions
answered
Member

Perfect WEC!! Thanks
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 2 posts
  • Votes 0 votes
  • Topic users 2 members

2 participants

W
W
WEC 10
  • Veteran Member, joined since
  • Contributed 946 posts on the community forums.
  • Started 5 threads in the forums
I
I
  • Member, joined since
  • Contributed 70 posts on the community forums.
  • Started 32 threads in the forums
  • Started this discussions

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet