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. Simple text click through on a full screen slider site

Simple text click through on a full screen slider site

Scheduled Pinned Locked Moved General Discussion
5 Posts 3 Posters 912 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.
  • J
    J
    jayrusselldotco
    wrote on last edited by
    #1

    Hey!

    I am trying to do a very simple 'menu' on my one project page which is a full screen slider inside a project. You can see here www.jayrussell.co.uk

    I have a false menu where it is just a text element on every page I now want to implement extra text which would allow you to click from the first slider page to other pages in the slider to function as a menu.

    I've done a lot of reading on this but I am a bit out of my depth on getting this to work.

    I just very simply want a text element to be able to skip from one of my pages in the slider to another.

    I tried http://laythemeforum.com/topic/4200/definitive-guide-to-smooth-scroll-to-anchors-from-menu but don't think I was using the anchors correctly.

    Any help or guidance is much appreciated on this.

    Thanks!

    1 Reply Last reply
    0
    • mariusjopenM
      mariusjopenM
      mariusjopen
      Global Moderator
      wrote on last edited by
      #2

      Dear @jayrusselldotco
      you need to use jQuery to change the slide.

      LayTheme uses FullpageJS for this slideshow:
      https://github.com/alvarotrigo/fullPage.js/#fullpagejs

      You need to call the function to switch to the specific slide.

      Here you can see the slide number fp-viewwing-0-9. It needs to change to a different number then.
      0_1574239950292_Bildschirmfoto 2019-11-20 um 09.48.41.png

      Hope that I was able to get you into the right direction.

      Best!

      Marius

      www.mariusjopen.world

      1 Reply Last reply
      0
      • J
        J
        jayrusselldotco
        wrote on last edited by
        #3

        Thanks so much for the response Marius and I do kind of see where you're coming from.

        I have tried to implement code to skip to anchors by linking them to the ID of the slide. When doing so the links don't seem to do anything.

        I feel like this is incredibly simple, I'm just missing something here.

        How do I command a piece of text on the 1st slide which tells the FullpageJS to go to slide 9 for instance, when doing so with anchor points or the https://github.com/alvarotrigo/fullPage.js#creating-links-to-sections-or-slides

        Nothing happens?

        Thanks for the help!

        J

        1 Reply Last reply
        0
        • mariusjopenM
          mariusjopenM
          mariusjopen
          Global Moderator
          wrote on last edited by
          #4

          Dear @jayrusselldotco
          we will get back to you in a bit about that.

          Best!

          Marius

          www.mariusjopen.world

          1 Reply Last reply
          0
          • arminunruhA
            arminunruhA
            arminunruh
            Global Moderator
            wrote on last edited by arminunruh
            #5
            jQuery.fn.fullpage.moveTo(2);
            

            2 is the slide number

            0_1574870469469_Screenshot 2019-11-27 at 16.54.09.png

            HTML:

            <p class="slideto" data-slideto="2">go to slide 2</p>
            

            0_1574870584507_Screenshot 2019-11-27 at 17.02.34.png

            CSS:

            .slideto{
            cursor: pointer;
            }
            

            JS:

            <script>
            jQuery(document).on("click", ".slideto", function(event) {
            	var slideNum = jQuery(this).attr('data-slideto');
                    jQuery.fn.fullpage.moveTo(slideNum);
            });
            </script>
            

            now when you want a link that goes to slide 3 just use

            <p class="slideto" data-slideto="3">go to slide 3</p>
            
            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