WordPress.org

Ready to get started?Download WordPress

Forums

Customizr
customizr child them, css will not work (11 posts)

  1. bstevenguy
    Member
    Posted 5 months ago #

    Hello,

    I am using the customizr theme as a child theme. I am trying to center and enlarge my logo and have my menu under it. I've entered the following in the custom css box as well as the style.css file. Neither seems to work.

    .navbar-wrapper .brand {width:100%; float:center;}
    .navbar-wrapper .navbar {width:99%; float:center;}

    Website is here

    I am building this site for my boss as our old one is extremely outdated.

    Any help would be greatly appreciated.

    Thank you

  2. d4z_c0nf
    Member
    Posted 5 months ago #

    float:center doesn't exist.
    Look at this snippet, might help:
    http://www.themesandco.com/snippet/center-header-block-items/

  3. bstevenguy
    Member
    Posted 5 months ago #

    Did not know that. I pulled that code from an older post to do exactly what I wanted on customizr.

    I tried some of those snippets, still no effect on the site at all.

  4. d4z_c0nf
    Member
    Posted 5 months ago #

    I used that snippet my-self and it worked, some days ago.
    So there's something wrong in the way you used it.
    Where did you put those snippets?
    Have you created a child theme? (preferable)
    You have to put the css part in the style.css of the child theme.
    And the php part in the function.php of the child theme.

  5. d4z_c0nf
    Member
    Posted 5 months ago #

    Oh sorry, I forgot you said you used a child theme in your first post :D

  6. rdellconsulting
    Member
    Posted 5 months ago #

    All I can see in the Child Theme is an @import of the core style.css. (That @import isn't needed, the Theme does that).

    So how are you adding Snippet code, eg Center the Header Block?

  7. bstevenguy
    Member
    Posted 5 months ago #

    ok, I re-did my child theme, and now those snippets seem to have some effect. However, what I am trying to do is, center my logo, and have my menu centered under it. I am having trouble trying to find the proper css code to do this.

    @rdellconsulting, I was trying both the custom css box and directly in the style.css file.

  8. bstevenguy
    Member
    Posted 5 months ago #

    I am also running in to another problem. I created a functions.php for the child theme, whenever I put anything in this file, it displays the code at the top of the screen above the header. What am I doing wrong here?

  9. d4z_c0nf
    Member
    Posted 5 months ago #

    Well, if your functions.php doesn't work you cannot properly apply the changes of those snippets.
    So.. how looks like your functions.php?
    Did you put at the top of that file
    <?php
    ?

  10. bstevenguy
    Member
    Posted 5 months ago #

    I did not know to put that at the top. However, once I do I get the white screen of death. I had to then use my ftp to delete it to restore function to the website.

  11. rdellconsulting
    Member
    Posted 5 months ago #

    Read this snippet first to ensure you understand how the CT should look.

Reply

You must log in to post.

About this Theme

About this Topic

Tags

No tags yet.