Viewing 20 posts - 1 through 20 (of 20 total)
  • Author
    Posts
  • #333333

    Hi,
    I’ve read the topic below but it seems to only concern the “one page” sites and I need some more explanations…
    http://kriesi.at/documentation/enfold/add-anchors-to-your-page-for-single-page-navigation/

    Is it possible (and how) to add anchor points as menu items for a specific submenu on one specific page in a multipages site ?
    I guess the page would then have to be “one column” if sections are used ? At this stage in my page (see link below) I have a column on the right as I am just doing tests and see how things can turn out. If I get rid of this column and decide to use the sticky submenu under the main menu, would it then be possible to work with anchors ?
    If so, I have a last question -> At this stage I’ve created (empty) pages for “Gouvernance”, “Equipe”, “Partenaires” etc… But if I use anchors they are not going to be real “pages” right ? So I would just need to create different “anchored sections” (and not “pages”) in the “Nous connaître” page right ?
    Thank you very much for you help !

    Regards,
    Marie

    #333649

    Hey marienoisette!

    Thank you for using Enfold.

    I’m sorry but you lost me on the “one column” part. Yes, it is possible to use the Fullwidth Submenu as anchor menu. Add it on the page where you want to create a single page navigation. Insert Color Sections to correspond with the anchor menus that you added on Fullwidth Submenu. Please review the single page navigation documentation.

    Cheers!
    Ismael

    #333739

    Hey Ismael, thank you for your answer !

    ANCHORS ISSUES
    Sorry I didn’t want to lost you on the “one column” part ;). I was meaning that, as I have to use sections on this “nous connaitre” page, this page has to have “no sidebar”. RIght ? Ok, so I changed the structure of my page and removed the right sidebar that was there previously.
    I’ve started adding new sections with anchors, and then added the links in the submenu.
    – At this stage it works on chrome and firefox but not on safari (although I refreshed). ??
    – It’s not very “smooth” though. Is there a trick for this ?
    – The positions are also kind of aleatory, depending on wether you click on ‘gouvernance’ or ‘equipe”, on chrome, on firefox…
    The worst is the first one that goes under the submenu… I would really need help on this…

    SUBMENU ISSUES
    I have other issues with the submenu itself. Should I create another thread ?
    1. When you are on the homepage and then click on “nous connaitre” the submenu is a little hidden under the main one and you have to scroll a little so it can appear completely…
    2. I’d like the submenu to be aligned on the right AND with the search icon above. Is that possible ? I know this is a fullwidth submenu… but the way it looks now doesn’t look “clean” to me… and I’d rather not center it either… Hope you can help.

    Thank you !!

    Kind regards,
    Marie

    #334201

    Hi Ismael,
    Regarding SUBMENU ISSUES -> Issue n°2 finally fixed with the following code.
    Kind regards,
    Marie

    /* Submenu */
    #top .av-subnav-menu {
        margin-right: 40px;
    }
    #334892

    Hey!

    Can you please post a screenshot of the first issue?

    Cheers!
    Yigit

    #334964
    This reply has been marked as private.
    #335847

    Hey!

    Please add following code to Quick CSS

    .html_header_top.html_header_sticky #main {
    padding-top: 98px;
    }

    Regards,
    Yigit

    #335991

    Hey Yigit!
    1. Thank you very much ! It works ! I just had to adjust at 102px rather than 98.

    When you have time, please don’t forget me for following issues :

    2. How to adjust anchors/sections positions ? When I click on a submenu item it goes to the good section but the beginning of the section is hidden under the submenu.

    3. Anchors don’t work at all in Safari.

    And I’m adding a number 4… sorry :)
    4. Is there a trick to have a nice smoothing scrolling effect like in the restaurant one page enfold demo ?

    Thank you again for your help.

    Kind regards,
    Marie

    #339397

    Hey Yigit!

    No news from you but I noticed that now anchors work on Safari! Probably thanks to one of you guys…? :)
    Nice smoothing scrolling effect also on all browsers :)
    Well I don’t know who did what but thank you!

    My last issue on this page remains the position of the anchors : it also moved apparently and it’s better, but it’s adjusted to the exact same level than the section title. I’d rather have it adjusted to the very top of the section (so to have a little “air” above the title) -> have the very top of anchored sections going just under the submenu.

    If you want to have a look go on safari as – no idea why… – my header is not fixed anymore on chrome & firefox… (but I already mentioned this in an another thread yesterday / hoping to have some answers soon!).

    Thanks for your help!
    Regards,

    Marie

    #339609

    Hello Marie & Yigit, I have a similar issue. It’s not the first time I set up a one-page-site with Enfold, but this time I can’t seem to make it work. When clicking the anchor link, the page just reloads and doesn’t even scroll to the specific anchor.

    How should I fix this?

    Thanks!

    Thomas

    #339610
    This reply has been marked as private.
    #341659

    Hey!

    Anyone can help with this please? See my post from oct.22.
    Thank you very much! Cheers!
    Marie

    ———

    My last issue on this page remains the position of the anchors : it also moved apparently and it’s better, but it’s adjusted to the exact same level than the section title. I’d rather have it adjusted to the very top of the section (so to have a little “air” above the title) -> have the very top of anchored sections going just under the submenu.

    If you want to have a look go on safari as – no idea why… – my header is not fixed anymore on chrome & firefox… (but I already mentioned this in an another thread yesterday / hoping to have some answers soon!).

    #342866

    Hey Marie!

    What’s the current state of the issues from this topic? the fixed header issue was solved in another thread from what i recall.

    Regards,
    Josue

    #342911

    Hi Josue!

    Absolutely, the fixed header issue js solved.
    My last issue is the position of the anchors when you “click-to-scroll-to” : when you click on an item in the submenu it goes just at the top of the title text (for example “Gouvernance”) which is not really nice visually. I would like the scroll to go to the top of the section. So to have a little air above the title -> right now the item title sticks to the submenu container… Hope my explanations are not confusing…

    Thank you Josue!
    Regards,

    Marie

    • This reply was modified 10 years, 1 month ago by Marie.
    #343880

    Hey!

    Header and menu height css modifications can break the smooth scroll function. Did you add any kind of those modifications? If you want, you can edit avia.js, find this code:

    if(tempPadding > 0 && shrink) 
    						{
    							tempPadding = (tempPadding / 2 ) + non_shrinking + non_shrinking2;
    						}
    						
    						else 
    						{
    							tempPadding = tempPadding + non_shrinking + non_shrinking2;
    						} 

    Add more variable to increase the tempPadding.

    Cheers!
    Ismael

    #343905

    Hi!

    OK I see… Thank you Ismael.
    I tried this and it works apparently -> I just change scroll offset value on line 643, from 10 to 18. See below.

    1. Can you confirm I didn’t make a mistake as the code you mention above is “under” the one I changed (in the file)… I just need to be sure I’m not doing something that could cause issues somewhere else…
    2. Is there no other way (than touching the native avia.js file) to make this adjustment? not possible in my child theme? I would prefer…

    Thanks for your help!
    Cheers,

    Marie

    if($header.css('position') == "fixed")
    					{
    						var tempPadding  		= parseInt($main.data('scroll-offset'),18) || 0,
    							non_shrinking		= parseInt($meta.outerHeight(),10) || 0,
    							non_shrinking2		= parseInt($alt.outerHeight(),10) || 0; 
    #344084

    Hey!

    Your code looks fine and please refer to Josue’s post here to include your avia.js file to your child theme – https://kriesi.at/support/topic/glassy-transparent-header/#post-318937

    Best regards,
    Yigit

    #344130

    Hey!
    This is what I did from what I understood.
    – I left the native avia.js file in ‘enfold’ without any modifications.
    – I copied it on my desk, changed the line 643 and then put it in my child theme folder
    – Then on my child function.php file, I added the code Josue gave (see your link above).

    But it didn’t work…(anchors positions worse than before) and even the portfolio in the media page was not working anymore (images invisible)… Well so I deleted the added code on my function.php file for now (see below)… Did I do something wrong? :/

    Thanks a lot,
    Best regards,
    Marie

    
    
    /*
    * Embed modified avia.js file from my child theme
    */
    
    function change_aviajs() {
       wp_dequeue_script( 'avia-default' );
       wp_enqueue_script( 'avia-default-child', get_stylesheet_directory_uri().'/js/avia.js', array('jquery'), 2, true );
    }
    add_action( 'wp_enqueue_scripts', 'change_aviajs', 100 );
    
    #345079

    Hi!

    Please place the avia.js file inside the js folder on the child theme. The directory should be enfold-child > js > avia.js.

    Regards,
    Ismael

    #345164
    This reply has been marked as private.
Viewing 20 posts - 1 through 20 (of 20 total)
  • The topic ‘Anchor points as menu items in a submenu’ is closed to new replies.