• Hi folks,
    The site in question is: http://www.sortit.ie

    I am new to WordPress, so bare with me (I’m in IT but not used to Web design)

    I am using elegantwhite pro theme.

    I am trying to add text (contact info) to the top right of the header, opposite of my business logo. Just something simple like:
    Tel: x
    E-Mail: x

    The other small issue is… if you look at the stock blue picture i’m using, you can see “Main logo” inside a bubble; I am trying to get rid of this.
    I inspected the element in Chrome which gives me the HTML but I cannot find this code anywhere…. am I right to think that this code is just created by PHP and not located anywhere, per se

    Many thanks for your help!

Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter irishbogger

    (@irishbogger)

    Is anyone out there?

    Thread Starter irishbogger

    (@irishbogger)

    I have managed to solve the small issue of removing the “Main Logo” text – this was done via GUI I just needed to open my eyes.

    The original issue still persists: I do not know whow to add text to the top right of the header.

    Also, there is too big of a gap between the top image (logo), the main menu and the main image – can anyone advise on how to make this gap smaller?

    The original issue still persists: I do not know whow to add text to the top right of the header.

    Looks like you will need to modify the header.php file – but that should only be done in a child theme –

    http://codex.wordpress.org/Child_Themes

    Otherwise all of your changes will be lost when the theme is updated. If you’ve already made changes, you should move them to a child theme.

    Get that set up and I’ll look at the modifications to the header.php file.

    Thread Starter irishbogger

    (@irishbogger)

    WPyogi – Thank you very much for your help, I appreciate it.

    I have created a child theme and copied in a basic style.css, ensuring it’s all working OK.

    Your site doesn’t show a child theme as active – and it’s really not smart to modify a theme directly – once you get the child theme set up, add this code to the header.php in the child theme:

    <div id="topright"><!-- add top right area to header -->
    PUT YOUR TEXT IN HERE
    </div>  <!-- end top right area div -->

    right below this line:

    <div id="container">

    And add this CSS to the new style.css file:

    #topright {
        float: right;
        border: 1px solid black;
        width: 300px;
        padding: 10px;
    }

    You may need to adjust that according to your text and liking.

    Thread Starter irishbogger

    (@irishbogger)

    WPyogi – I have created a child theme, in the ‘Editor’ section in the WP admin, the theme appears in the “Select theme to edit” drop-down, with the message “This child theme inherits templates from a parent theme, elegantWhite Pro.”

    Does this mean it’s active?

    Regardless I will go on with your advice. I assume I just copy the header.php from the main elegantWhitePro folder?

    Is the child theme selected as the active theme? i.e. click activate.

    Thread Starter irishbogger

    (@irishbogger)

    I am such a doofus! I didn’t activate. I have now activated and GREAT, I have text up in the top right corner.

    I need to remove the border around it and mess with font etc. but this is a great start, THANK YOU SO MUCH!

    I have some hurdles to get over (I want to make the gap above and under the menu bar smaller) but this is a great start, thank you again!!

    No problem. The best way to work with CSS is by using a browser tool like Firebug – to find the existing CSS – then COPY that to your child theme style.css file and change it there. It will override the existing CSS.

    Thread Starter irishbogger

    (@irishbogger)

    Thanks again.

    Would you be able to hint at how I might go about altering the text in the header (which i’ve just created) to be the same as the rest of the website?

    Also, regarding the ‘header image’ (not my logo on top right) – I would like to put an image in there (i’d drop the original high res) that is about half the height of the default height that WP sets (I couldn’t find a way to reduce the height of the image). Basically I do want an image in there to brighten up the website, but don’t want the user to have to scroll down so far to get to the text.

    Thanks again dude, i’m happy to PayPal over the price of a beer for this help

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Adding text to top-right header & one small issue’ is closed to new replies.