• Hi Guido,

    Sorry for other question.
    I would like to use the space outside container for a few purposes (e.x: advertisement)

    How can I do it?

    Thanks!
    KuBo

Viewing 5 replies - 1 through 5 (of 5 total)
  • Theme Author Guido

    (@guido07111975)

    Hi,

    For that you should create a child theme and add theme files header and footer there. Then you can add the advertisement code outside the container div.

    But you can also try for example this plugin first, to insert code in the head or footer section.

    Guido

    Thread Starter thienmai1325

    (@thienmai1325)

    Thanks Guido for guiding,

    Do you have any reference link to create a child theme or something like that?
    If yes, could you please share to me?

    KuBo

    Theme Author Guido

    (@guido07111975)

    Hi,

    1) Create a folder called “myknowledgebase-child” and copy-paste CSS file “style” and PHP file “functions” from parent theme.

    2) Make both files empty.

    3) Add this in file functions:

    
    <?php
    /*
     * Child Theme functions and definitions.
     */
    
    // Get stylesheet from parent theme
    function myknowledgebase_extra_styles() {
    	wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
    }
    add_action( 'wp_enqueue_scripts', 'myknowledgebase_extra_styles' );
    

    4) Add this in file style:

    
    /*
    Theme Name: MyKnowledgeBase Child
    Description: MyKnowledgeBase child theme.
    Version: 1.0
    Author: KuBo
    Template: myknowledgebase
    */
    

    5) Add your custom CSS in file style.

    6) And / or copy-paste files “header” and “footer” from parent theme and change the files to your needs.

    7) Zip the “myknowledgebase-child” folder, install it as theme, and activate it.

    Good luck ??

    Guido

    Thread Starter thienmai1325

    (@thienmai1325)

    Thanks Guido for helping in detail.

    I will try with your guiding, and let you know the result.

    Thanks again!
    KuBo

    Theme Author Guido

    (@guido07111975)

    You’re welcome and if you want more info about child themes, please check this page.

    Guido

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How can I use empty space outside container?’ is closed to new replies.