Support » Theme: Suffusion » [Theme: Suffusion] Child theme issue

  • Resolved munkykisser

    (@munkykisser)


    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/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator keesiemeijer

    (@keesiemeijer)

    moderator

    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.

    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Theme: Suffusion] Child theme issue’ is closed to new replies.