• 0

Question

Posted · Report post

I need to "swap" the current title tag in a child theme for the following:

<title><?php wp_title(); ?></title>

I've searched WordPress forums and on Google but haven't found anything that works.

 

Any ideas?

 

Cheers

 

Dawson

Share this post


Link to post
Share on other sites

8 answers to this question

  • 0

Posted · Report post

Hi,

 

You won't be able to do that in a child theme for DMS. May I ask why you want to use that, why not just use Yoast SEO or just add your own Site Title and tagline, which is used by default ?

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Hi Danny

 

Thanks for the information.

 

I'm using WordPress SEO but wanted to swap wp_title() for the_title() for dynamic keyword insertion into meta tags for PPC landing pages (using Speed PPC plugin with Speed PPC  built ads).

 

Anyway, thanks again for letting me know.

 

Cheers

 

Dawson

 

 

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

It's actually just supposed to allow for the replacement of meta tags (post/page title, description) on dedicated landing pages whose values are passed through the URL from PPC ads and insert keywords dynamically into title tags and meta description.

 

I think Yoast's WordPress SEO uses wp_title tag so I was thinking it wouldn't be a problem to do.

 

I've looked at the following page but can't work this out:

 

http://codex.wordpress.org/Function_Reference/wp_title

 

I thought maybe I could work something out with filters with the information on the page below but no luck (truncated link makes it look the same as the one above but it`s different):

 

 

I`ve got it happening for the page content, but the closest I've come to "success" with this was getting the page title value passed from the URL and inserted into the page. Not the result I was looking for (I wasn't getting the "meta" part right).

 

I've been advised that others have done it but, for whatever reason, no one seems to be willing to share (probably due to the competitiveness of the PPC world).

 

Anyway if you can shed more light on this, I'd appreciate it.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

DMS already uses wp_title() and allows for wp_title() filters like all good themes should. Thats why yoasts SEO works perfectly well already.

the_title() as danny already mentioned is for post titles in the loop, not page <title>

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Thanks for the info, Simon.

 

Here are the exact instructions from the plugin:

 

 

You need also to change the title tag in you wordpress theme as shown below.

<title><?php wp_title(); ?></title>

 

Based on that, is there anything that I need to do or should it just work?

 

Cheers

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

The title tag is already set to that in DMS, so you shouldn't need to do anything. However, I think the best thing for you to do is contact their support, as I loathe PPC. ;)

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Thanks Danny.

 

I get the feeling you're holding back on your feelings about PPC.

 

How do you really feel?

 

:)

 

Cheers,

 

Dawson

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now