Codeless
  • Support Home
  • Themes
  • Support
  • WordPress Tutorials
    • How to Start a Blog
    • Best Website Builders
    • Best Small Business Hosting
    • Email Marketing Services
    • Cheap WordPress Hosting
  • Video Tutorials

Community Forums

  • Profile
  • Topics Started
  • Replies Created
  • Favorites

Forum Replies Created

  • 8 years, 6 months ago smi-steve
    Participant

    Expired

    in reply to: Single Page Site Achors

    Also, I was able to get around this issue for now by commenting out an if statement in jquery.onepage.js. This was meant to prevent you from clicking on a section you were already on, but that was killing the nav on page load since all links had the current class.

    // if(!$parent.hasClass(self.config.currentClass)) {

    ….

    //}

    8 years, 6 months ago smi-steve
    Participant

    Expired

    in reply to: Single Page Site Achors

    The main issue of the one page layout here is the addition of the current-menu-item class. It gets added for links like /#sec1 but not #sec1. I’m guessing that has something to do with the menu code for WordPress (in nav-menu-template.php) and may not be easily customized.

    This might be fixable if a different class is used in your main.js for the codelessOnePage function. I’m thinking that if current-menu-item was changed to something not already used by WordPress, then this problem would go away.

    8 years, 6 months ago smi-steve
    Participant

    Expired

    in reply to: Single Page Site Achors
    This reply has been marked as private.
    8 years, 6 months ago smi-steve
    Participant

    Expired

    in reply to: Single Page Site Achors

    If you turn it off the one page nav, the menu links still have the current classes, but now the smooth scrolling is disabled. What is generating the “current-menu-item current_page_item menu-item-home” classes? I’m assuming if we could get rid of that, then everything would work fine.

    8 years, 6 months ago smi-steve
    Participant

    Expired

    in reply to: Blog Widget

    I don’t see an option for controlling the number of columns on the Full Blog widget. Here’s a link to the section I am trying to modify.

    https://reading.nhms.com/#sec4

    8 years, 6 months ago smi-steve
    Participant

    Expired

    in reply to: Single Page Site Achors

    Unfortunately, that doesn’t work. Whether you use /#sec1 or https://sitename.com/#sec1, the link in the menu gets a current class added to it for some reason. That’s happening server side, so it has something to do with the code generating the menu.

    8 years, 6 months ago smi-steve
    Participant

    Expired

    in reply to: Single Page Site Achors

    I spent some time looking at the jquery.onepage.js file  to figure out why those classes are being added and just finally realized they are being added server-side. If you view the source, any link that doesn’t start with a # in the nav gets the following classes added to it – current-menu-item current_page_item menu-item-home. Do you know why that would happen or what files generate the navigation?

    8 years, 6 months ago smi-steve
    Participant

    Expired

    in reply to: Single Page Site Achors

    I noticed something interesting which may help solve the problem. The links that have a / in front of them all have the current_page_item class on them on initial page load. Once you scroll down the page and something else picks up the current class, then all the links start working. That would make sense since the click handler ignores links when you are already on that section.

    8 years, 7 months ago smi-steve
    Participant

    Expired

    in reply to: Codeless Button Icon

    OK, thanks. If I did need to make a change to the slider’s files, where would that be located? It’s not exactly a plugin, so I wasn’t sure where to look.

Viewing 9 posts - 1 through 9 (of 9 total)

Site Links

  • Support Policy
  • Specular Support Forum
  • Video Tutorials
  • Knowledge Base
  • Guides and Reviews

Useful Articles

  • Build a Website
  • Web Design & Development
  • Hosting
  • WordPress

Login

Log In
Register Lost Password