Support » Fixing WordPress » How can I right-align my contact details?

  • Is there an easy way to post my contact details in the upper right corner of this page? This is the only page I want to do this on:

    http://blog.rblock.com/?page_id=129#

    I’d like them to be right-justified, and start on the same line as the word “Objective” That’ll give some balance to the layout of the page.

    I am new to WordPress and am using a child-theme of Twenty Twelve to make style changes.

    Thanks so much,

    Vivek

Viewing 9 replies - 1 through 9 (of 9 total)
  • C W (VYSO)

    (@cyril-washbrook)

    You may want to look at the answer I gave to a similar query in this thread. You can customise it to suit your needs.

    (If you have any issues with that code, reply here and not in the other thread.)

    Thanks Cyril.

    I read the answer you gave in that other post, but had to ask you about it before trying. I am using the Twenty Twelve Child Theme, and a week ago when I made a change to the functions.php file (in the child), it crashed my whole WordPress installation. I was able to get it back by restoring the file through FTP, but want to be sure that its OK to make the change you suggested to functions.php

    Right now, this is all that my functions.php file has inside:

    <?php
    
    // add any new or customised functions here

    Thanks,

    Vivek

    C W (VYSO)

    (@cyril-washbrook)

    want to be sure that its OK to make the change you suggested to functions.php

    Well, I wouldn’t have made the suggestion if following it would break the site…

    If you add the snippet correctly – as written and on new lines – then it should work just fine. It is useful to keep a backup of your functions.php file before making edits: then even if you do make a mistake, you can revert the changes in literally a few seconds.

    Cyril, OK I’ll give it a try, thanks. I posted above just to make sure that you wanted me to add the snippet to the functions.php file of the child theme (not the parent). I’ll assume that to be the case as my sense as a newcomer to WordPress is that the child theme, once installed, over-rides the parent theme. Will revert back when I have something to report. Thanks again, Vivek

    Hi Cyril,

    It worked, thanks. Please have a look at my CV at:

    http://blog.rblock.com/curriculum-vitae/

    To make it fit in with the simple look of the page, I think I’d like to remove the shading and the border of the box containing my email address. That part I can figure out. But I’d also like to right justify the content inside the box, and probably add more contact details. Not sure how to do that. Do I need to modify the functions.php code, or the style.css code.

    Thanks again for your mindshare on this. I really appreciate it.

    Best,

    Vivek

    Hi Cyril,

    I’ve removed it because it did not render properly on my iPhone, so that’s something else I need to figure out. I’ll keep at it.

    Best,

    Vivek

    Having it render correctly on your iPhone is something that could be helped by what’s called “Responsive Styling” in CSS. You do that by editing your “style.css” file. Basic changes there only affect the appearance of your site, so it’s a lot safer than editing the PHP files.

    Do you have any experience with CSS?

    Hi psa234,

    Unfortunately I don’t have any experience with CSS. Once I get the basic content onto the various links I have, I will definitely focus on learning some CSS. If you can point me to any good links on Responsive Styling, that would be great, thanks.

    Vivek

    Here is a good article on it, but if you don’t know basic CSS and HTML, it won’t make much sense. – http://www.creativebloq.com/responsive-web-design/build-basic-responsive-site-css-1132756

    If you want to learn how to code in HTML, CSS, PHP, JavaScript, etc., I recommend CodeAcademy. http://www.codecademy.com/ They’ll get you the basics down, and they’ll do it in style. 😀 😀

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘How can I right-align my contact details?’ is closed to new replies.