We Bake Theme – load section one

Home Forums SKT Full Width Forum We Bake Theme – load section one

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #11290
    Michael AbourizkMichael Abourizk
    Member
    • Topics: 1
    • Replies: 3
    • Total: 4
    Member since: September 10, 2015

    Hi There, I’ve noticed that upon refresh or visiting the site (we bake – http://healthyeating.esy.es/) for the first time the sections don’t load unless you start to scroll down the page. Is there a way to make section 1 load and be visable as soon as you refresh the page without the scrolling?

    Thanks in advance and apologies if this is the wrong forum

    Mike

    #11293
    Sonl SinhaSonl Sinha
    Keymaster
    • Topics: 10
    • Replies: 6987
    • Total: 6997
    Member since: June 12, 2013

    Hi Mike,

    It can be done accessing custom.js within js folder of the theme file using ftp or using miwoftp.

    If you are uncomfortable dealing with ftp then kindly email us: [email protected] with your WordPress admin details. We will take care to load the first section on load and not on scroll.

    Regards,
    Shri

    #11299
    Michael AbourizkMichael Abourizk
    Member
    • Topics: 1
    • Replies: 3
    • Total: 4
    Member since: September 10, 2015

    Thanks Shri, much appreciated, I’ll give it a crack and let you know if I have any difficulties, can you tell/show me what I need to change in custom.js?

    appreciate the fast response

    Mike

    #11300
    Sonl SinhaSonl Sinha
    Keymaster
    • Topics: 10
    • Replies: 6987
    • Total: 6997
    Member since: June 12, 2013

    Hi Mike,

    In custom.js we have mentioned animation like bounce, fadeIn for each section.

    So for section 1 you have to change it to none. So there will be no animation and section will be loaded.

    Regards,
    Shri

    #11301
    Michael AbourizkMichael Abourizk
    Member
    • Topics: 1
    • Replies: 3
    • Total: 4
    Member since: September 10, 2015

    Thanks Shri

    You’re the best

    Mike

    #11303
    Sonl SinhaSonl Sinha
    Keymaster
    • Topics: 10
    • Replies: 6987
    • Total: 6997
    Member since: June 12, 2013

    Thanks for the appreciation.

    Regards,
    Shri

    #11416
    Michael AbourizkMichael Abourizk
    Member
    • Topics: 1
    • Replies: 3
    • Total: 4
    Member since: September 10, 2015

    Hi Shri, I’m afraid I need more assistance. I’ve changed section 1 to “none” in custom.js by replacing “fadeIn” however it has now removed section one all together. See code below

    jQuery(window).scroll(function() {
    jQuery(‘.pleasure’).each(function() {
    var imagePos = jQuery(this).offset().top;

    var topOfWindow = jQuery(window).scrollTop();
    if (imagePos < topOfWindow+400) {
    jQuery(this).addClass("none");
    }
    });

    Can you advise what I'm doing wrong? URL is http://healthyeating.esy.es/

    Thanks in advance

    Mike

    #11419
    Sonl SinhaSonl Sinha
    Keymaster
    • Topics: 10
    • Replies: 6987
    • Total: 6997
    Member since: June 12, 2013

    Hi Mike,

    Send us WordPress admin panel details via email: [email protected]

    Will check.

    Regards,
    Shri

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.