WordPress.org

Support

Support » Themes and Templates » ridizain-child theme

ridizain-child theme

  • Mandrake7062
    Member

    @mandrake7062

    I’m following directions here

    To set up a child theme as you suggested in the Center Header Thread.
    Beneath the themes directory is ridizain and beneath that is ridizain-child.

    Inside the ridizain-child is: style.css
    With:
    /*
    Theme Name: ridizain child
    Theme URI: http://kdf-computers.com/ridizain-child/
    Description: ridizain child theme
    Author: KDF Computers
    Author URI: http://kdf-computers.com
    Template: ridizain
    Version: 1.0.17
    Tags: light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
    Text Domain: ridizain-child
    */

    @import url(“../ridizain/style.css”);

    /* =Theme customization starts here
    ————————————————————– */
    End file: I have this structure in place with no adverse effects to the website.

    Does this look ok to you so far?
    If not, what changes do I need to make?
    Also, what templates and or files would you add to the child dir?

    I’m fairly new to WordPress, so all your help is really appreciated! 🙂
    Kenny

Viewing 11 replies - 1 through 11 (of 11 total)
  • Mandrake7062
    Member

    @mandrake7062

    I followed the instructions, but this line struck me as odd, because it’s no the full path. wp-content/themes is missing?

    Mandrake7062
    Member

    @mandrake7062

    Oh from the Theme URI:
    Line

    Mandrake7062
    Member

    @mandrake7062

    I just activated the child theme and the site is fine.
    The only thing I lost was the header picture, so I re did that and all is the same again.

    Theme Author Brian Harris
    Member

    @zgani

    Hello Kenny,

    Glad to see you got a child theme going for the required modifications 🙂

    Did you add the CSS code given in the other thread? Any difference?
    If it did not work you might want to add !important to the declaration – here’s the code again with that added…

    #site-header {
        margin: 0 auto !important;
    }

    Regards,
    Zulf
    EDIT:

    I followed the instructions, but this line struck me as odd, because it’s no the full path. wp-content/themes is missing?

    WordPress knows where to look given the correct parameters 🙂

    Mandrake7062
    Member

    @mandrake7062

    Thanks for your help, and I’ll be trying the above soon.

    On the “pages” widget.
    Do you know a short code to exclude all menu pages?

    Mandrake7062
    Member

    @mandrake7062

    No Joy, Zulfikar..
    I tried both in the above style.css with no effect.

    Theme Author Brian Harris
    Member

    @zgani

    OK lets try with this one…

    .site-header {
        margin: 0 auto;
    }

    Also try it with !important added if above does not work.

    Zulf

    Mandrake7062
    Member

    @mandrake7062

    I added the 3200px to custom-header.php with no joy

    Then realized I may have to re-up the header……
    Guess what, it’s working fine!

    Now I’m not sure of the adjustment that worked. 😉

    Theme Author Brian Harris
    Member

    @zgani

    Awesome 🙂

    Now I’m not sure of the adjustment that worked.

    The main thing is, its working.

    The way I test things (if I don’t remember) is by going back and remove one adjustment at a time, save test, note the results then re-apply the changes, save and move on to the next. Eventually I find the working adjustment 🙂

    Mandrake7062
    Member

    @mandrake7062

    Ok, I’ll give it a try.

    Mandrake7062
    Member

    @mandrake7062

    I removed the style.css adjustment and left this alone
    add_theme_support( ‘custom-header’, apply_filters( ‘ridizain_custom_header_args’, array(
    ‘default-text-color’ => ‘fff’,
    ‘width’ => 3200,
    ‘height’ => 380,
    ‘flex-height’ => true,
    ‘wp-head-callback’ => ‘ridizain_header_style’,
    ‘admin-head-callback’ => ‘ridizain_admin_header_style’,
    ‘admin-preview-callback’ => ‘ridizain_admin_header_image’,

    I changed it in two places

    function ridizain_admin_header_style() {
    ?>
    <style type=”text/css” id=”ridizain-admin-header-css”>
    .appearance_page_custom-header #headimg {
    background-color: #000;
    border: none;
    max-width: 3200px;
    min-height: 48px;
    }

    And it is still holding full screen at 1920 resolution header.
    What I’m wondering now is if it will be justified left at a higher resolution. I’m attempting to find out from a friend.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘ridizain-child theme’ is closed to new replies.