badget

Biggest Sale! Special Offer!

Get 30% discount on all of our single themes with this coupon code: #30%SALE

Hurry up! *Limited time offer*

Ultimate Pro Child Theme

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #23275
    aris
    Participant

    Hi,

    I need to insert some custom code to footer.php and the plugin provider told me that is better to create a Child-theme so i don’t loose my changes if i update my main theme (ultimate-pro)

    so i created the ultimate-pro-child and putted there an empty style.css , then according to this link

    http://codex.wordpress.org/Child_Themes

    I created the style.css and functions.php

    i putted the
    —-
    add_action( ‘wp_enqueue_scripts’, ‘theme_enqueue_styles’ );
    function theme_enqueue_styles() {
    wp_enqueue_style( ‘parent-style’, get_template_directory_uri() . ‘../ultimate-pro/style.css’ );
    wp_enqueue_style( ‘child-style’,
    get_stylesheet_directory_uri() . ‘../ultimate-pro-child/style.css’,
    array(‘parent-style’)
    );
    }
    —–

    into the functions.php and activated the child theme, however for some reasons i do not understand it is showing the theme but the rendering is not RIGHT (is showing ALL pages in the TOP-MENU)

    Can you please help me to create a child-theme properly so i don’t destroy my Ultimate-Pro theme?

    or, is it possible to tell me where can i put some custom code for the footer.php ?

    regards,

    Aris

    #23276
    aris
    Participant

    in regard to the above post,

    after following the instructions from http://codex.wordpress.org/Child_Themes

    YOU SHOULD make the settings of “Widgets” and “Menu” again, in order to show properly in the site.

    Everything is OK now :), thanks

    #23292

    That’s great aris

    Thank you!

    #23293

    That’s great aris

    Thank you!

    #24191
    James
    Participant

    Hello

    I have tried to setup a child theme following the link:
    http://codex.wordpress.org/Child_Themes

    My style.css has the following in it:

    /*
    Theme Name: ultimate-pro-child
    Theme URI: http://catawaterwm.com/ultimate-pro-child
    Description: Ultimate Pro Child Theme
    Author: James Buckmaster
    Author URI: http://catawaterwm.com
    Template: ultimate-pro
    Text Domain: ultimate—pro-child
    */

    My function.php has:

    add_action( ‘wp_enqueue_scripts’, ‘theme_enqueue_styles’ );
    function theme_enqueue_styles() {
    wp_enqueue_style( ‘parent-style’, get_template_directory_uri() . ‘/ultimate-pro/style.css’ );
    wp_enqueue_style( ‘child-style’,
    get_stylesheet_directory_uri() . ‘/ultimate-pro-child/style.css’,
    array(‘parent-style’)
    );
    }

    when I go to look at me themes I get this:

    Broken Themes

    The following themes are installed but incomplete. Themes must have a stylesheet and a template.

    Name Description ultimate-pro-child Stylesheet is missing.

    I’d like to make some modification on the CSS sheets and need to get this child set up just
    not sure what I have done wrong.

    /* write custom css */

    #24192
    James
    Participant

    that /*write custom css*/

    actually is on the bottom of my style.css sheet

    #24201

    Hi James,

    If you really want to make changes only in css then you may add your CSS via Custom CSS. Goto dashboard -> appearance-> theme options -> design options -> Custom css and add your custom css.

    If you like to make a child theme then you need to add the following css in your functions.php
    wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );

    hope this may help you
    or you may add in your child theme of style.css

    /*
    Theme Name: Ultimate Child Theme
    Author: Self-Help WordPress User
    Template: Ultimate Pro child
    */
    
    @import url("../ultimate-pro/style.css");
    .wrapper {
    width: 95%;
    background-color: #fff;
    }

    Thank you!

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.