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. X-button (close) on category page

X-button (close) on category page

Scheduled Pinned Locked Moved General Discussion
9 Posts 2 Posters 259 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.
  • F Offline
    F Offline
    fotex
    wrote on last edited by
    #1

    Hi. I hope you or anyone can help me. Unfortunately I didn't find a solution on the previous questions about x-buttons.
    On my front page I show a lot of projects which you can check after clicking the thumbnai of that project. then you come to a page where you can see an overview of all the project images. On that side should be the possibility to close that project (x-button) and jump back to the place where you have been before on the front page. Is that possible?

    Here is the site: http://s522515773.online.de/

    Thank you in advance,
    Alex

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

      css:

      .close-back{
      position: fixed;
      top: 200px;
      right: 20px;
      z-index: 10;
      }
      /* on frontpage the close-back element is hidden */
      body.slug-recent-work .close-back{
      display: none;
      }
      

      svg from: https://heroicons.com/

      html:

      <a href="http://s522515773.online.de/" data-type="category" data-id="1" data-title"Alex Becker Photography" class="close-back">
      <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-6 h-6">
        <path stroke-linecap="round" stroke-linejoin="round" d="M6 18L18 6M6 6l12 12" />
      </svg>
      </a>
      

      to be put in lay options -> custom css & html

      hope this leads you into the right direction

      F 1 Reply Last reply
      0
      • arminunruhA arminunruh

        css:

        .close-back{
        position: fixed;
        top: 200px;
        right: 20px;
        z-index: 10;
        }
        /* on frontpage the close-back element is hidden */
        body.slug-recent-work .close-back{
        display: none;
        }
        

        svg from: https://heroicons.com/

        html:

        <a href="http://s522515773.online.de/" data-type="category" data-id="1" data-title"Alex Becker Photography" class="close-back">
        <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-6 h-6">
          <path stroke-linecap="round" stroke-linejoin="round" d="M6 18L18 6M6 6l12 12" />
        </svg>
        </a>
        

        to be put in lay options -> custom css & html

        hope this leads you into the right direction

        F Offline
        F Offline
        fotex
        wrote on last edited by
        #3

        @arminunruh Thanks a lot for you quick reply. Unfortunately I get a message in the html field after I copied your solution: "Invalid character in attribute name. Start tag seen without seeing a doctype first.."
        Well, I´ve no idea..

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

          yea that error doesnt matter

          1 Reply Last reply
          0
          • F Offline
            F Offline
            fotex
            wrote on last edited by
            #5

            I put it in but the function is not there..

            1 Reply Last reply
            0
            • F Offline
              F Offline
              fotex
              wrote on last edited by
              #6

              I also tried to download the svg icon. than opens a text field that says it's copied. but I can't safe it anywhere. Unfortunately I don't know anything about CSS, HTML and so on..

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

                the css goes into

                "custom css for desktop version"

                and the html goes into

                "html at bottom"

                1 Reply Last reply
                0
                • arminunruhA arminunruh referenced this topic on
                • arminunruhA arminunruh referenced this topic on
                • F Offline
                  F Offline
                  fotex
                  wrote on last edited by
                  #8

                  Hi Armin, thanks for your help, but unfortunately the code doesn't work. I'll use a simple back-button..

                  Another question is, if it's possible to have a project title on an auto-play-video if the curser goes over it like on a project thumbnail. Or should I open a new topic.

                  Cheers, Alex

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

                    noo not possible :(

                    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
                    M
                    MATTOFIRE
                    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