-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
no onepage function #2
Comments
@phn2211: Ah, this can be confusing. The line with For changing the amount of sections (pages), you can add this simple little code snippet to functions.php: /*
* A simple function to control the number of Twenty Seventeen Theme Front Page Sections
* Source: wpcolt.com
*/
function twentyseventeen_custom_front_sections( $num_sections ) {
return 7; // Change this number to change the number of the sections.
}
add_filter( 'twentyseventeen_front_page_sections', 'twentyseventeen_custom_front_sections' ); Edit: I added this as commented out example to |
Thanks strarsis, works great! I would like to add the logo to the navbar and deactivate the header with sitetitle and sitedescription. How do I set the logo to navigation? And how do I set post-picture instead of logo and title? Thanks so much for your engagement! |
@phn2211: Sorry for the rather long delay. This child theme uses the twentyseventeen theme as parent, the logo markup is rendered here. For further modifying the theme, you have to create a new file in the child theme (in this case this single page theme you are already using) under the same relative path as the file of parent theme you want to modify. So in this case this you would need to create a new file under the path 'components/header/site-branding.php' in the theme you are working on and copy + paste the complete contents of it over. Then you can start modifying it, e.g. moving |
@phn2211: I assume your issue has been resolved and I closed it. |
Why can I just set 4 additional pages in the costumizer?
I already edited the functions.php
$num_sections = apply_filters( 'twentyseventeen_front_page_sections', 8 );
without result.Edit: I found this snippet in "inc/costumizer.php" I think I have to create this file in the child theme and add this code to it?
The text was updated successfully, but these errors were encountered: