Como agregar mas secciones en la pagina principal?
-
Hola a todos.
Tengo un pequeño problema de novato, que básicamente no se el lenguaje PHP y digo esto por que necesito agregar mas secciones a mi pagina principal http://www.thebestourvirtual.com. La cual actualmente tiene 4, que son las que te da por defecto el tema Twenty Seventeen. Pero investigando me tope con esta explicación en este enlace https://codex.wordpress.org/Twenty_Seventeen
If you want to change the number of the sections either you want to have more section or remove some, add this snippet to your theme’s functions.php.
add_filter( ‘twentyseventeen_front_page_sections’, ‘prefix_custom_front_page_sections’ );
function prefix_custom_front_page_sections( $num_sections )
{
return 6;
}
By doing that, you will have 6 sections instead of the default 4.El problema es que cuando intento agregar esa función en el archivo functions.php no teniendo idea de como pegarlo o colocarlo de la manera adecuada, reviento mi web entera. Por lo tanto me gustaría que me ayudarán guiándome a como escribirla bien en el archivo o si hay alguna solución más a este problema.
Gracias de antemano!
- El debate ‘Como agregar mas secciones en la pagina principal?’ está cerrado a nuevas respuestas.