Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Croover.inc

    (@ryota0101)

    Hi @asta141592 !

    Thank you for using our plugins!
    I’m ryota!

    jQuery('body').append('<div id="rtoc_return"><a href="#rtoc-mokuji-wrapper">'+ rtocBackText.rtocBackText +'</a></div>');
    $('a[href^="#rtoc-mokuji-wrapper"]').click(function(){
    	var speed = 400;
    	var href= $(this).attr("href");
    	var target = $(href == "#" || href == "" ? 'html' : href);
    	var position = target.offset().top;
    	$("html, body").animate({scrollTop:position}, speed, "swing");
    	return false;
    });

    Put this code in place of the return in lines 16 and 18 of rtoc_return.js and I’m sure it will show up!
    (The position of the code has been checked in version 1.2.2.)

    All that’s left is to adjust the position and size of the buttons using CSS, but I can’t share the correct CSS without actually seeing the site, so you’ll have to deal with that yourself.

    Also, please note that modifications are solely at your own risk.
    If there’s anything else you don’t understand, I’ll help you as much as I can, so please say anything.

    Best regards!

    Thread Starter asta141592

    (@asta141592)

    Thank you for your help!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Let the “Back to Contents” button appear on the PC’ is closed to new replies.