Hi everyone,
Well, I apologize in advance for asking this question but I am a little bit confused.
I am trying to add the google Adsense code to my site (http://aquariumbreeder.com).
How can I add the code to my Child theme?
I have found here that there are two option
(1)
(2)
Which one and where exactely should I put it?
<?php // ============================================================================= // FUNCTIONS.PHP // ----------------------------------------------------------------------------- // Overwrite or add your own custom functions to X in this file. // ============================================================================= // ============================================================================= // TABLE OF CONTENTS // ----------------------------------------------------------------------------- // 01. Enqueue Parent Stylesheet // 02. Additional Functions // ============================================================================= // Enqueue Parent Stylesheet // ============================================================================= add_filter( 'x_enqueue_parent_stylesheet', '__return_true' ); // Additional Functions // ============================================================================= // Custom Entry Meta // ============================================================================= if ( ! function_exists( 'x_ethos_entry_meta' ) ) : function x_ethos_entry_meta() { // // Author. // $author = sprintf( ' %1$s %2$s', __( 'by', '__x__' ), get_the_author() ); // // Output. // if ( x_does_not_need_entry_meta() ) { return; } else { printf( '%1$s
', $author); } } endif; // ============================================================================= Thanks!