WordPress.org

Ready to get started?Download WordPress

Forums

WP-Creativix
[resolved] Centre Logo (14 posts)

  1. SusanO2607
    Member
    Posted 1 year ago #

    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.

  2. Andrew Nevins
    Barrel Rider, Spam Zapper & Volunteer Moderator
    Posted 1 year ago #

    Make your CSS changes in your Child Theme stylesheet;

    #logoname {
     width: 100%;
     text-align: center;
    }
    
    #logoname a {
     float: none;
    }
  3. SusanO2607
    Member
    Posted 1 year ago #

    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.

  4. Andrew Nevins
    Barrel Rider, Spam Zapper & Volunteer Moderator
    Posted 1 year ago #

    Can you link the webpage with the issue?

  5. SusanO2607
    Member
    Posted 1 year ago #

  6. SusanO2607
    Member
    Posted 1 year ago #

    sorry that should be http://iswconsultants.com

  7. Andrew Nevins
    Barrel Rider, Spam Zapper & Volunteer Moderator
    Posted 1 year ago #

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

  8. SusanO2607
    Member
    Posted 1 year ago #

    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.

  9. SusanO2607
    Member
    Posted 1 year ago #

    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... :-(

  10. Andrew Nevins
    Barrel Rider, Spam Zapper & Volunteer Moderator
    Posted 1 year ago #

    Try;

    #logoname a:hover,
    #logoname a {
     float: none;
    }
    
    #logoname a {
     display: table;
     margin: 0 auto;
    }
  11. SusanO2607
    Member
    Posted 1 year ago #

    Still not working...

  12. Andrew Nevins
    Barrel Rider, Spam Zapper & Volunteer Moderator
    Posted 1 year ago #

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

  13. SusanO2607
    Member
    Posted 1 year ago #

    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!

  14. SusanO2607
    Member
    Posted 11 months ago #

    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!

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags

No tags yet.