Anchor links
Hello there, I've looked through all the threads in here but can't find a solution.
I'm using OnePage and a left fixed menu. But I have created a special header for the logo as I want the logo more central. But the anchor links locations i all the way in the top of the page, behind the header.
Can I somehow change the offset of the link locations e.g. 100px from the top of the page/window? I've tried in the scripts.js file but no luck...
Can you help me somehow?
Thanks, Dennis
I'm using OnePage and a left fixed menu. But I have created a special header for the logo as I want the logo more central. But the anchor links locations i all the way in the top of the page, behind the header.
Can I somehow change the offset of the link locations e.g. 100px from the top of the page/window? I've tried in the scripts.js file but no luck...
Can you help me somehow?
Thanks, Dennis
Comments
please send us url to your website where you want to do this and also attach screenshot of what you mean and we'll see what we can do for you.
Thanks!
Dennis
Dennis
In my functions file I've added:
add_action( 'wp_enqueue_scripts', 'enqueue_parent_theme_style', 99 );
function enqueue_parent_theme_style() {
wp_enqueue_style( 'be-parent-style', get_template_directory_uri().'/style.css' );
wp_enqueue_style( 'be-child-style', get_stylesheet_directory_uri().'/style.css' );
}
Can I somehow do the same for JS?
Thanks!
You can use Custom JS field in Theme Options. You can find it in Apearance > BeTheme Options > Layout > Custom CSS & JS
Thanks!