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. 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 250 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.
  • J Offline
    J Offline
    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:4567/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 Offline
      mariusjopenM Offline
      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 Offline
        J Offline
        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 Offline
          mariusjopenM Offline
          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 Offline
            arminunruhA Offline
            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
            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