WordPress.org

Ready to get started?Download WordPress

Forums

Suffusion
[resolved] Child theme issue (3 posts)

  1. munkykisser
    Member
    Posted 2 years ago #

    Hi,

    I wish to add a menu location in the footer (the footer bit seems OK) My issue is changing the code in the functions.php. everytime I add my own functions.php file in my child the site is no longer there. This breaks it horribly. Adding my own footer and style.css was ok.

    Any idea what I'm doing wrong?

    Thanks

    http://wordpress.org/extend/themes/suffusion/

  2. keesiemeijer
    moderator
    Posted 2 years ago #

    Did you read this: http://codex.wordpress.org/Child_Themes#Using_functions.php

    Try starting with a blanco functions.php and keep adding functions (or code) to it to see where the error occurs.

  3. munkykisser
    Member
    Posted 2 years ago #

    Thank you,

    Yup, twas my dodgy php. And there I was thinking I was doing OK.

    What I wanted to do was override a function using function_exists but it seems all I had to do was poke this in my functions.php:

    register_nav_menus(
    	array(
    		'top'=> __('Navigation Bar Above Header'),
    		'main'=> __('Navigation Bar Below Header'),
    		'footer-links'=> __('Footer Links')
    	)
    );

    and it was picked up fine.

    Is it good practice to put code in like this or is there a better way?

    Nice.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic