• Resolved Cris

    (@kissthat)


    add_action( 'after_setup_theme', 'childtheme_formats', 20 );
    function childtheme_formats(){
         add_theme_support( 'post-formats', array( 'aside',
         'chat',
         'gallery',
         'image',
         'link',
         'quote',
         'status',
         'video',
         'audio' ) );
    }

    i tried to add that code in my functions.php in my child theme file.
    One thing i am not sure about do i have to copy all of the content of functions.php and just add that code to the bottom of it or put it in some special place ?

Viewing 4 replies - 1 through 4 (of 4 total)
  • i tried to add that code in my functions.php in my child theme file

    what happened? any error messages?

    does the functions.php start with
    <?php

    generally, do not copy all codes from functions.php of the parent theme into the functions.php of the child theme. http://codex.wordpress.org/Child_Themes#Using_functions.php

    Thread Starter Cris

    (@kissthat)

    i had written functionss.php my bad. Btw so the only thing that my child theme functions.php file has is that code, is that how it should be ? Because you just said you do not copy all codes, but how do i know what codes i have to copy ?

    how do i know what codes i have to copy ?

    basically, do not copy any codes.

    some functions which are preceeded by if( ! function_exists( 'function_name' ) ) are so called pluggable functions which can be copyied into the child theme’s functions.php.

    once you get more experienced with WordPress, you will know…

    Thread Starter Cris

    (@kissthat)

    Thanks, your answers are great. You are just amazing !

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to add video post formats in twenty twelve ?’ is closed to new replies.