• Resolved SusanO2607

    (@susano2607)


    Before WP-Creativix updated, I had my logo centred by amending the header.php. Can’t find where to amend it now. Need it for my Child Theme.

Viewing 13 replies - 1 through 13 (of 13 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Make your CSS changes in your Child Theme stylesheet;

    #logoname {
     width: 100%;
     text-align: center;
    }
    
    #logoname a {
     float: none;
    }

    Thread Starter SusanO2607

    (@susano2607)

    I tried by inserting the above into my child style.css but to no avail. I think I should have used the word header image rather than logo.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Can you link the webpage with the issue?

    Thread Starter SusanO2607

    (@susano2607)

    Sorry, it’s http://iswconsultant.com

    Thread Starter SusanO2607

    (@susano2607)

    sorry that should be http://iswconsultants.com

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Your Child Theme doesn’t look activated. Are you sure you activated it through the dashboard?

    Thread Starter SusanO2607

    (@susano2607)

    Just double-checked. If I go to the editor it just shows my header.php and my style.css and if I go to Themes, my WP-Creativix-Child is on top.

    Thread Starter SusanO2607

    (@susano2607)

    Still not coming right with this problem on http://iswconsultants.com

    #logoname { is not found under my style.css but rather under my style.php.

    I have tried to create a child style.php with the following code:

    /*
    Theme Name: WP-Creativix-Child
    Theme URI: http://www.iswconsultants.com/
    Description: ISWC Child WP-Creativix Theme
    Author: Susan Offer
    Author URI: http://www.iswconsultants.com/about-us/
    Template: wp-creativix
    Version: 1.0
    */

    @import url(‘../wp-creativix/style.php’);

    #logoname {
    width: 100%;
    text-align: center;
    }

    #logoname a {
    float: none;
    }

    but it’s still not working… 🙁

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Try;

    #logoname a:hover,
    #logoname a {
     float: none;
    }
    
    #logoname a {
     display: table;
     margin: 0 auto;
    }

    Thread Starter SusanO2607

    (@susano2607)

    Still not working…

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Your Child Theme is not active, make sure you activate it through the dashboard.

    Thread Starter SusanO2607

    (@susano2607)

    Have triple checked that my child theme is activated unless I’m doing something really stupid (which is not outside the realm of my current reality). I can see this as I have no search area on my menu bar.

    http://iswconsultants.com/wp-admin/themes.php

    Would be most grateful if you could assist – am going bald at a rapid rate of knots!

    Thread Starter SusanO2607

    (@susano2607)

    Ok, found out what the problem was. The change has to be made in the style.php not the style.css. The .php does not overwrite the parent theme as the .css does.

    Decided to do away with my child theme as most of my changes are required in the .php file rather than the .css. Thought about forking the theme but decided against it as my changes are minor and quick to do should the main theme update. Just have to have them well documented so I don’t forget what I did.

    #logoname {
    width: 100%;
    text-align: center;
    }

    #logoname a {
    float: none;
    }

    worked nicely in my .php file to centre my logo.

    Thank you!

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Centre Logo’ is closed to new replies.