Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

Lay Theme Forum

  1. Home
  2. General Discussion
  3. Can you embed a page?

Can you embed a page?

Scheduled Pinned Locked Moved General Discussion
6 Posts 2 Posters 113 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    barakat
    wrote on last edited by
    #1

    Hello, thanks for making this theme and tool.

    I'd like to essentially "embed" two different pages on my home page grid.

    I tried with a shortcode https://wordpress.org/plugins/insert-pages/, but it only renders the title of each page, and not the entre "lay theme grid content" of that page. The idea is that I can reuse pages as "blocks" and arrange them with the laygridder tool.

    <div class="left"> [insert page='page1'] </div>
    <div class="right"> [insert page='page2'] </div>
    

    If shortcodes aren't the way, is there an alternative approach with Lay theme to recommend?

    1 Reply Last reply
    0
    • B Offline
      B Offline
      barakat
      wrote on last edited by
      #2

      I could insert the pages with JavaScript. But then the laytheme scripts would also need to run again, like lazyloading images, once the HTML has been inserted. Is there a function for this?

      1 Reply Last reply
      0
      • arminunruhA Offline
        arminunruhA Offline
        arminunruh
        Global Moderator
        wrote on last edited by arminunruh
        #3

        can you try enabling:

        lay options → content filter

        at the bottom

        maybe then it could work

        why do you want to embed two pages?

        1 Reply Last reply
        0
        • B Offline
          B Offline
          barakat
          wrote on last edited by
          #4

          Thank you. But the setting didn't seem to affect this?

          I wanted to embed the two pages to reuse them. So I can show them off both at the homepage in a 50/50 layout, but also as standalone pages.

          • I have two category pages: dinosaurs and birds
          • Each with a nice gridder layout
          • Homepage (or whatever page) renders/embeds the two pages in its own gridder layout

          If I did the dinos and birds directly on the homepage layout I can't reuse it. Like show birds on /birds as well.

          1 Reply Last reply
          0
          • B Offline
            B Offline
            barakat
            wrote on last edited by
            #5

            Let me try to put it another way:

            as on https://laytheme.com/tutorials/create-a-splitscreen-website.html, where you essentially choose a "page" to embed on one side via the footer option, I'd like to also choose a page for the other side.

            1 Reply Last reply
            0
            • arminunruhA Offline
              arminunruhA Offline
              arminunruh
              Global Moderator
              wrote on last edited by
              #6

              the page on the right side is always just the page you're on

              and the page on the left side is always whatever footer page you chose

              you know
              Screenshot 2024-01-20 at 11.19.10.png

              in lay options → footers

              you can select these boxes where it says:
              "Show a select input in the Project Edit Screen to choose a Footer for individual Projects"

              then for each project/page/category you can choose a different footer page.
              so this way you can have different pages that show on the left side of the splitscreen layout

              and whatever page you're on will always be on the right side

              there are no other settings for this, so im not sure if that covers your use case

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              I also code custom websites or custom Lay features.
              šŸ’æ Email me here: šŸ’æ
              info@laytheme.com

              Before you post:
              1. When using a WordPress Cache plugin, disable it or clear your cache.
              2. Update Lay Theme and all Lay Theme Addons
              3. Disable all Plugins
              4. Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"

              This often solves issues you might run into

              When you post:
              1. Post a link to where the problem is
              2. Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
              3. If the problem is difficult to explain, post screenshots / link to a video to explain it
              Online Users
              Forgot your key, lost your files, need a previous Lay Theme or Addon version? Go to www.laykeymanager.com
              laytheme.com
              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Recent
              • Tags
              • Popular
              • Users
              • Search