Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Brite
  • 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 977 Views 1 Watching
  • 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
    F
    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
      arminunruhA
      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
        F
        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
          arminunruhA
          arminunruh
          Global Moderator
          wrote on last edited by
          #4

          yea that error doesnt matter

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

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

            1 Reply Last reply
            0
            • F
              F
              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
                arminunruhA
                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
                  F
                  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
                    arminunruhA
                    arminunruh
                    Global Moderator
                    wrote on last edited by
                    #9

                    noo not possible :(

                    1 Reply Last reply
                    0

                    Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                    Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                    With your input, this post could be even better 💗

                    Register Login
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    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