Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #193904

    Hi Guys,

    can anybody help me to setup a custom page template that i can use. I am tying to load some code from another website using a iframe but for some reason it doesn’t work. I have tried many different (iframe) plugins but the final result is not what i am looking for.

    So basically the idea is to setup a custom page template where i can load the iframe in the code it self.

    Thanks

    #194346

    Hi Shorty05!

    You can copy Page.php file inside Enfold folder and customize it to meet your needs

    Regards,
    Yigit

    #194434

    Well Yigit, i don’t wanna mess up the code. I am not that familiar with php.

    how should the page template look if i wanna load a iframe instead of any content ?

    and how can i give the template a name so that i am able to select it on the edit screen as the template i wanna use for my page.

    #194526

    Hey!

    Have you tried using a simple Page and putting the iframe code in the Text tab?

    <iframe src="_URL_HERE_" frameborder="0"></iframe>
    

    Best regards,
    Josue

    #194819

    Hi Josue,

    yes i have tried it but for some reason it doesn’t work neither with the layout builder nor with the standard editor. I have placed the iframe code to the “text” editor.

    if i use a text block with the advanced editor and if i place the code to that using the “text” editor option it shows the iframe content after i save the text block but as soon s i publish the page i get a white content section and the frame is gone.

    the thing is i see the code in the source code of the page but for some reason nothing appears on the fronted.

    Additional to this i would love to use the advanced layout builder to keep the design of our pages. If i use the standard editor i am not able to add a fullwidth slider on top of our page.

    should i post a link ?

    #195397

    Hey!

    If you use the advanced layout editor then you need to only use the text tab of that item. WordPress (not the theme) will remove raw code from a page if you switch to the visual editor. Its somewhat inconsistent so I’m not sure what the exact trigger is for it but I’ve run into the same issues when trying to just add code to something.

    If you can add that in and then link us to the page where the iframe isn’t showing on the front end then we can take a look at whats going on there.

    I’ve also got a full width page template here if you want to try that route: https://gist.github.com/DevinVinson/7540477

    Best regards,
    Devin

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Custom Page Template’ is closed to new replies.