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. Need Custom Coding for Lay Theme? Find 3rd Party Developers here.
  3. mixing newsgirl and project thumbnails

mixing newsgirl and project thumbnails

Scheduled Pinned Locked Moved Need Custom Coding for Lay Theme? Find 3rd Party Developers here.
6 Posts 2 Posters 255 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
    bb_daniel
    wrote on last edited by
    #1

    Hey @arminunruh,

    we are looking for a solution to combine NEWS and PROJECT THUMBNAILS in one grid (ordered by their publication date). Unfortunately it's not possible to combine them using the element gird (because you can't choose single NEWS).

    Alternatively I´m looking for a code that mixes up the content of a news grid and a thumbnail grid (ordered by their publication date). I played around with some custom code using .append() to move the elements but I can't find the right parameter to sort them correctly.

    Do you guys maybe have a solution for that problem?

    Best, Daniel

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

      ooh, lay theme doesnt support that sorry! :/

      basically you want to put news post thumbnails into an elementgrid, and also put project thumbnails into an elementgrid?

      Screenshot 2024-08-28 at 18.57.01.png

      so basically here, you want to have a +news button?

      i would need to code that, but this solution wouldn't automatically make it sorted by date

      1 Reply Last reply
      0
      • B Offline
        B Offline
        bb_daniel
        wrote on last edited by
        #3

        @arminunruh Thanks for your reply. Having a +news button within the Element Grid would be a sweet alternative. Would that be easy for you to implement?

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

          this would take some time, i added it to my todolist, but im not sure when i would have time for this

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

            @arminunruh
            thanks, I found a way to mix and reorganize both elements with a custom jQuery. Unfortunately when using "newpageshown" the script only fires after the page has rendered. So there is a short moment where the elements jump from one state to the other.

            Is there another way to make a custom code fire, before the page has rendered?

            Thanks, Daniel

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

              you can try the event 'newpage'
              or the event 'before_content_replacement'

              not sure if it will work

              maybe this

              window.laytheme.on('before_content_replacement', function(){
              
              setTimeout(function(){
              console.log('hi')
              // your code here
              }, 0)
              
              })
              
              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
              V
              vonMatthias
              R
              ruwie
              arminunruhA
              arminunruh
              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