WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] removed search box and now need less header depth (22 posts)

  1. joneve
    Member
    Posted 1 year ago #

    http://www.theperegrinemuse.com/PoetsInternational/

    After reading directions on another forum I deleted some code under header.php and it removed my header search box as I wanted but I think I have more space between the lines of names in the black box under the photo. The appearance of the page has altered and it looks like the depth of the header box should be narrowed - there is more space between the lines of names than is pleasing.

    Can this be done?

    Thank you.

  2. Andrew
    Forum moderator
    Posted 1 year ago #

    Can you link the thread that gave you the advice to delete the code under header.php?

  3. joneve
    Member
    Posted 1 year ago #

    The 8th post down, getting rid of everything to do with removing search.

  4. Andrew
    Forum moderator
    Posted 1 year ago #

    Are you sure that's the right site?

  5. joneve
    Member
    Posted 1 year ago #

    No, and I realized my mouse didn't pick up the new link and went back to get the right link and its gone! I think it has been replace with a new page.

    The page where I got it suggested going to the header.php page in Dashboard and deleting all of the text referring to search. There were, I believe, two instances with some code between them.

  6. Andrew
    Forum moderator
    Posted 1 year ago #

    The issue is that these WordPress.org forums don't provide support for these sorts of modifications unless you've set up a Child Theme.

  7. joneve
    Member
    Posted 1 year ago #

    What is a Child Theme?

    Is there CSS code I can put in my CSS place to modify my header depth or change the spacing between the lines in the black box under the photo?

    In future should I not modify anything - come here first?

  8. Andrew
    Forum moderator
    Posted 1 year ago #

    In future should I not modify anything - come here first?

    No, modify anything you want. It's the best way to learn & you're free to do so.

  9. Andrew
    Forum moderator
    Posted 1 year ago #

    Child Themes are best explained here: http://codex.wordpress.org/Child_Themes

  10. joneve
    Member
    Posted 1 year ago #

    Thank you. When you say "modify anything you want" do you mean anything can be fixed?

    Okay, I'll check out "Child Themes" - thank you for the link.

  11. Andrew
    Forum moderator
    Posted 1 year ago #

    Anything can be fixed, although there's a limit as to what level of help these forums can provide. We can help out with things like "I have an error on line 48" and "There's some empty space here", if problems are too big then you may need to hire someone to support you.

  12. joneve
    Member
    Posted 1 year ago #

    Okay, thanks. Got it. I think I'll come here first if it looks real risky. I hope to make good judgements in that regard.

    Anyway, would you have coding I can put on my header.php page to reduce the spacing between the lines of names in the black box under my photo?

    Thank you.

  13. Andrew
    Forum moderator
    Posted 1 year ago #

    Try adding this to your Child Theme style.css file, at the bottom:

    #access a {
     margin: 0 10px;
    }
  14. joneve
    Member
    Posted 1 year ago #

    I have a plug in already: Custom CSS Manager Plugin Settings

    And in my CSS area I have code already, which the plug in made possible, which makes it possible to enclose normal (no italics) text within blockquotes and more coding which makes it possible to manually select parts of the text to italicize.

    Would a Child Theme be necessary given that I have this plugin? Would it be possible to add the coding you give me above without making a Child Theme?

  15. Andrew
    Forum moderator
    Posted 1 year ago #

  16. joneve
    Member
    Posted 1 year ago #

    I read it but don't know how to create a themes directory and so forth so I thought I'd find out if it were necessary first. I see that it is because I tried pasting the code in my CSS directory and it doesn't work.

    I don't know how to do this:
    Create a directory in your themes directory to hold the child theme. The theme directory is wp-content/themes. You should name the directory without any space as part of the name, and it is common practice to use the name of the parent theme folder with “-child” appended to it.

  17. Andrew
    Forum moderator
    Posted 1 year ago #

    As you've already modified the header.php file I thought you'd see the necessity.

    Your hosting providers can help you with creating directories and files.

  18. joneve
    Member
    Posted 1 year ago #

    I do see the necessity now.

    But when I added the plugin I had the idea that it would take care of preserving any changes I made so that updates wouldn't erase them. I got the idea this is what the plugin and CSS area were for, whereas manual local changes in the text would be deleted.

    BlueHost support generally refers me to my Dashboard or WordPress, saying they don't support other programs.

    I'll try to figure this out myself, maybe there's a tutorial somewhere. The last technician I worked with here told me where to get the plugin though, which helped a lot.

  19. joneve
    Member
    Posted 1 year ago #

    I thank you for your assistance.

    I'll work it out as described above.

    I'll come here in future before I make any changes. As I'm a novice, that seems the safest way to go.

    Thanks again.

  20. WPyogi
    Forum Moderator
    Posted 1 year ago #

    Yes, that was me :) (Hi Andrew :)!) - so add the above code to your custom CSS.

    But if you are modifying theme files (like header.php) - not just CSS - then you need a child theme.

  21. joneve
    Member
    Posted 1 year ago #

    OH - that's it! Thank you! Now I understand. I didn't distinguish theme files and CSS.

    Duh! I misunderstood again and still thought I could add different code to my CSS file. Okay. NOW I've got it.

    I'll study the material on making a child theme and try to do it.

    Thanks again for your help!

  22. joneve
    Member
    Posted 1 year ago #

    p.s. - I would have kept the search box had it worked to find the specific words or subjects entered. But it didn't, and the site is very simple and a search box wasn't really needed.

    If I have questions about making the child theme while doing it I'll return here. I'll do all I can on my own first. Thanks again.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.