V
V
vvrider2015-07-03 10:30:14
CMS
vvrider, 2015-07-03 10:30:14

Opening a page/post in a Wordpress iframe?

Hello,

Tell me how to do this:

I bought a static template in which there is a 'recipes' section and there is a key 'open recipe'.

When you press a key, it opens through an iframe (

<a class="dt-sc-button small" href="receipe.html?iframe=true&amp;width=70%&amp;height=100%" data-gal="prettyPhoto[pp_receipe]">View Receipe</a>
)

the page that lies at the root of the site.

I want to do something similar in Worpdress - when you press the 'open recipe' button, the record/page in the iframe is loaded. So that there is no transition to another page, but everything opens in one window.

That is, there will be a block in which there will be posts with a brief description, and as usual in vp, when you go, you get a full page with details. And here, what would be loaded in the iframe directly on the page. What tag should be put in the iframe or is it not so easy?

Really, really, really need some practical advice.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mikhail Datsko, 2015-07-03
@vvrider

you can use js (plugin, native or something else) to catch and process the click (a couple of lines of code).
Or you can do it with ajax.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question