• I recently asked a question in “fixing wordpress” that I should have asked here. My question was about setting different header images based on menu navigation.

    I was introduced to the “featured image” capability and was offered some associated PHP code.

    Coincidentally, I looked up documentation on the “post format” option.

    In both cases, it seems that PHP code must be added to the functions.php module.

    That makes perfect sense to me – but the echo of “don’t hack the core” – was resonating in my head as I considered how best to proceed.

    I’d be interested on how modifications to the functions.php file are viewed – and if there is some specific guidance (the “codex” perhaps) on how to do so correctly.

Viewing 1 replies (of 1 total)
  • lisa

    (@contentiskey)

    -“Core” is different than functions.php of your theme.
    -“don’t hack the core is good advice”
    -You can modify your theme’s files.

    Suggestions:
    -Set up a child theme for making changes to theme functions and files.
    -“header images” for your theme are different that featured images that display on a pages and/or posts.
    -You might find it helpful post a topic the theme support forum area for the theme you are using for your site. The theme specific support team can give more appropriate guidance.
    -create a backup of your database and files before making any changes

Viewing 1 replies (of 1 total)
  • The topic ‘adding code to functions.php to support theme features’ is closed to new replies.