WordPress.org

Ready to get started?Download WordPress

Forums

Ridizain
ridizain-child theme (12 posts)

  1. Mandrake7062
    Member
    Posted 6 months ago #

    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

  2. Mandrake7062
    Member
    Posted 6 months ago #

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

  3. Mandrake7062
    Member
    Posted 6 months ago #

    Oh from the Theme URI:
    Line

  4. Mandrake7062
    Member
    Posted 6 months ago #

    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.

  5. Zulfikar Nore
    Member
    Theme Author

    Posted 6 months ago #

    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 :)

  6. Mandrake7062
    Member
    Posted 6 months ago #

    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?

  7. Mandrake7062
    Member
    Posted 5 months ago #

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

  8. Zulfikar Nore
    Member
    Theme Author

    Posted 5 months ago #

    OK lets try with this one...

    .site-header {
        margin: 0 auto;
    }

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

    Zulf

  9. Mandrake7062
    Member
    Posted 5 months ago #

    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. ;)

  10. Zulfikar Nore
    Member
    Theme Author

    Posted 5 months ago #

    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 :)

  11. Mandrake7062
    Member
    Posted 5 months ago #

    Ok, I'll give it a try.

  12. Mandrake7062
    Member
    Posted 5 months ago #

    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.

Reply

You must log in to post.

About this Theme

About this Topic

Tags

No tags yet.