Monday 15 September 2014

Wordpress force 'view post' to open in a new tab after publish -


My users are creating posts on 'Frontend' of WordPress, and it's within a custom-style iframe overlay.

After publishing the post, the standard message appears, 'Post was updated. view Post. '

Because the user is in an iframe overlay, clicking on the view post puts them in the iframe and the experience breaks.

I want to emphasize the 'View Post' button with _blank in a new tab, but I think this is a function, I have not found any way to do this. Alternatively, you can close the iframe by posting the post and go to the post.

thanks,

Ian

in the work of iframe Individual links, by default, will open in iframe. You need to set anchor's goals.

This will open it in the original window:

  target = _parent   

Open it in a new window / tab:

/ P>

  target = _blank   

This will have some custom editing in your theme files. So if you're good with PHP and HTML, then you have no problem!

No comments:

Post a Comment