Viewing 23 posts - 1 through 23 (of 23 total)
  • Author
    Posts
  • #802528

    Hi,

    I’m currently building a website with uses the tab sections. I have some links on the homepage which go to another page which has # anchor links on. When clicking these links, they go to the tab sections, but when clicking on the tab section, instead of going to the next tab, it scrolls to the top of the page. It’s difficult to explain, so I have included links in the private section.

    Sometimes it works fine, but other times it doesn’t. I also notice that when it’s not working properly, the little arrow indicating which tab you are on is white, rather than the colour it should be. Can you please take a look?

    It’s difficult to replicate because sometimes it’s okay. It feels like the page isn’t loading correctly.

    Attached is an image to show what it looks like when it’s not working – the arrow should be grey.

    Thanks in advance.

    #802548

    Hey jonrouse,

    Can you try to modify tab_section.php under wp-content\themes\enfold\config-templatebuilder\avia-shortcodes\ folder, then find this code (line 384):

    $tabs  .= "<a href='#{$tab_title_link}' rel="nofollow">{$icon}{$image}<span class='av-outer-tab-title'><span class='av-inner-tab-title'>{$tab_title}</span></span>{$arrow}</a>";

    and replace it with this code:

    $tab_title_href = avia_sc_tab_section::clean_title_anchor( $tab_title, $i );
    					
    $tabs  .= "<a href='#{$tab_title_href}' rel="nofollow">{$icon}{$image}<span class='av-outer-tab-title'><span class='av-inner-tab-title'>{$tab_title}</span></span>{$arrow}</a>";

    then in the same file (at the bottom) find this code:

    return $output;
    }

    after that code add this:

    static public function &clean_title_anchor( $string, $unique_id )
    {
        $str = preg_replace( '/  */', '-', $string );
        $str = preg_replace('/[^A-Za-z0-9-]/', '', $str );
        $str = $unique_id . '-' . $str;
        return $str;
    }

    Let us know if that helps :)

    Best regards,
    Nikko

    • This reply was modified 7 years, 5 months ago by Nikko.
    #802566

    Sorry didn’t mean to reply yet. Thanks!

    • This reply was modified 7 years, 5 months ago by jonrouse.
    #802578

    Hello Nikko,

    That broke the site and I had to put the original back.

    #802588

    Hi,

    Can you give us temporary admin access and ftp access? so we can try fix it. Just place the details in Private Content when you reply.

    Best regards,
    Nikko

    #802599

    Hi Nikko,

    Sure, thanks for looking. See private content. Can I ask, will I need to update this every time I update the theme?

    #802601

    Also, ftp access

    #802973

    Hi @nikko
    Any news on this issue – sorry to press, but they’re keen to launch the site.

    #803007

    Also, the line I see at 383 is different to the one you said I should change. It doesn’t say {$tab_title_link} it just says {$tab_title}

    $tabs  .= "<a href='#{$tab_title}' data-av-tab-section-title='{$i}' class='av-section-tab-title {$active_tab} {$extraClass} '>{$icon}{$image}<span class='av-outer-tab-title'><span class='av-inner-tab-title'>{$tab_title}</span></span>{$arrow}</a>";
    				}
    #803020

    Hi,

    Sorry I wasn’t able to get back to this thread sooner, I’m checking on it.

    Best regards,
    Nikko

    #803022

    Thanks. I’m still trying stuff, but I can’t seem to fix it. I’m no coder, so there’s not much I can try, but hopefully the admin account and ftp will help.

    #803025

    Hi,

    This is fixed. It is now working on firefox and you can also use the & now.

    Best regards,
    Nikko

    #803030

    Hi Nikko,

    Sadly it’s not working still. The first tab section works, but clicking on the titles of the other tab section does nothing except change the URL.

    /#1-CAMPAIGNS /#2-ADVERTISING /#3-NEWSLETTERS and so on.

    I am finding it difficult to reliably replicate, but when I look at the error console it is saying

    [Error] Error: Syntax error, unrecognized expression: #
    error (jquery.js, line 2)
    tokenize (jquery.js, line 2)
    compile (jquery.js, line 2)
    select (jquery.js, line 2)
    fa (jquery.js, line 2)
    find (jquery-migrate.min.js, line 2)
    handlers (jquery.js, line 3)
    dispatch (jquery.js, line 3)
    handle (jquery.js, line 3)

    • This reply was modified 7 years, 5 months ago by jonrouse. Reason: added image
    #803039

    Also, another bit of info for you, the white arrow pointing up is always white when loading the page, it changes to grey if the page is working property. This was not the case in the previous version of enfold.

    #803049

    Hi,

    Can you try to clear your browser cache and if you have a caching plugin, please try to flush the cache.

    Best regards,
    Nikko

    #803062

    Hi Nikko,

    I’ve done that, and rebooted our rooter. Also tried it on Safari, Chrome and Firefox. It still won’t work properly.

    This is the problem I was also experiencing.

    The hosting company is planning on moving it from the dev site to the live site today.

    Cheers

    • This reply was modified 7 years, 5 months ago by jonrouse. Reason: Extra Info
    #803183

    Hi,

    Sorry I didn’t notice the bottom wasn’t working, since I was checking the tab section on top, can you give us temporary admin access? so we can check the backend, I tried multiple tab sections on my local server and it was working fine.

    Best regards,
    Nikko

    #803802

    Hi Nikko,
    The admin access I provided above should be working.

    Thanks

    #804311

    Hi,

    Thanks and sorry for the late response. I have checked it and found out the issue is caused by Superfly Menu plugin, can you try to disable it and check again.

    Best regards,
    Nikko

    #805034

    Thanks Nikko,

    I turned it off, even though the site is now live, and it seemed to be working fine.

    I have written to the developer to ask if they can help,

    Thanks for your help and patience.

    Regards
    Jon

    #805469

    Hi,

    Glad we could help. Let us know if you need more assistance regarding this topic :)

    Best regards,
    Nikko

    #809035

    Hey,
    Just heard back from the developer. The Superflu plugin has a custom CSS section and there was a rogue # in there.
    Deleting that seems to have fixed the problem.

    Thanks again!

    #809491

    Hi,

    We`re glad that your problem was solved :)

    Best regards,
    John Torvik

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