How to center this text in wordpress PHP file?

Hi,
I am trying to center the text on the bottom of my blog. 
Site Admin
Log out
WP
These three elements above are aligned left and looks really bad, looks like the problem is on my footer.php, a container called footermenu, but I can't figure out where I need to plug in the code to center it. Here is the code for the footer:
<?php
if ( is_active_sidebar( 'footer-widget-area' ) ) {
?>
<div id="footer">
<div id="footerspan" >
<div class="container_12">
<div class="grid_8" >
<ul class="widget">
<?php dynamic_sidebar('footer-widget-area');?>
</ul>
</div>
<div class="grid_4" >
<h3><?php _e('Meta', 'mt-white');?></h3>
<ul>
<?php wp_register();?>
<li>
<?php wp_loginout();?>
</li>
<li>
<a href="<?php echo esc_url(__('http://wordpress.org/', 'mt-white'));?>" title="<?php _e('Powered by WordPress, state-of-the-art semantic personal publishing platform.', 'mt-white');?>"><abbr title="WordPress">WP</abbr></a>
</li>
</div>
<div style="clear:both"></div>
</div>
</div>
</div>
<?php } else {?>
<ul id="footermenu">
<?php wp_register();?>
<li>
<?php wp_loginout();?>
</li>
<li>
<a href="<?php echo esc_url(__('http://wordpress.org/', 'mt-white'));?>" title="<?php _e('Powered by WordPress, state-of-the-art semantic personal publishing platform.', 'mt-white');?>"><abbr title="WordPress">WP</abbr></a>
</li>
<?php wp_meta();?>
</ul>
<?php }?>
<?php wp_footer();?>
</body>
</html>
Thank you for your help.

Hi,
I am trying to center the text on the bottom of my blog. 
Site Admin
Log out
WP
These three elements above are aligned left and looks really bad, looks like the problem is on my footer.php, a container called footermenu, but I can't figure out where I need to plug in the code to center it. Here is the code for the footer:
<?php
if ( is_active_sidebar( 'footer-widget-area' ) ) {
?>
<div id="footer">
<div id="footerspan" >
<div class="container_12">
<div class="grid_8" >
<ul class="widget">
<?php dynamic_sidebar('footer-widget-area');?>
</ul>
</div>
<div class="grid_4" >
<h3><?php _e('Meta', 'mt-white');?></h3>
<ul>
<?php wp_register();?>
<li>
<?php wp_loginout();?>
</li>
<li>
<a href="<?php echo esc_url(__('http://wordpress.org/', 'mt-white'));?>" title="<?php _e('Powered by WordPress, state-of-the-art semantic personal publishing platform.', 'mt-white');?>"><abbr title="WordPress">WP</abbr></a>
</li>
</div>
<div style="clear:both"></div>
</div>
</div>
</div>
<?php } else {?>
<ul id="footermenu">
<?php wp_register();?>
<li>
<?php wp_loginout();?>
</li>
<li>
<a href="<?php echo esc_url(__('http://wordpress.org/', 'mt-white'));?>" title="<?php _e('Powered by WordPress, state-of-the-art semantic personal publishing platform.', 'mt-white');?>"><abbr title="WordPress">WP</abbr></a>
</li>
<?php wp_meta();?>
</ul>
<?php }?>
<?php wp_footer();?>
</body>
</html>
Thank you for your help.

Similar Messages

  • How to center the text displayed in a JList

    Hi,
    The width of the JList display area is wider than the text displayed. I tried to center the text displayed to make it look nicer. I had tried using "setAlignmentX(Component.CENTER_ALIGNMENT)" in my own ListCellRenderer class but did not work. Any idea how to center the text?
    Fai.

    Yes, I am using JLabels in my renderer and the following is the code:
    public class MyCellRenderer extends JLabel implements ListCellRenderer {
         private static final Color HIGHLIGHT_COLOR = new Color(0, 0, 128);
         public MyCellRenderer() {
              setOpaque(true);
              setIconTextGap(12);
         public Component getListCellRendererComponent(
              JList list,
              Object value,
              int index,
              boolean isSelected,
              boolean cellHasFocus)
              String entry = (String)value;
              setText(entry);
              setFont(new Font("Ariel", Font.BOLD, 18));
              setAlignmentX(Component.CENTER_ALIGNMENT);
              if(isSelected) {
                   setBackground(HIGHLIGHT_COLOR);
                   setForeground(Color.white);
              } else {
                   setBackground(Color.white);
                   setForeground(Color.black);
              return this;
    Can you point out where to implement the centering logic?
    Thanks,
    Fai.

  • How do I keep text in a converted file??

    I want to convert a PDF file that I received as an email attachement.  Can I convert it without saving it first.  It is the type that will let you save a blank form but not the info typed in and I don't want to retype the entire form.

    When I try to save it only the form is saved not the text that was typed in.  I want to save the info so I don't have to retype it.Bob
    Date: Tue, 10 Jan 2012 14:32:10 -0700
    From: [email protected]
    To: [Removed by moderator]
    Subject: Re: How do I keep text in a converted file?? How do I keep text in a converted file??
        Re: How do I keep text in a converted file??
        created by Dave Stromfeld in Adobe CreatePDF - View the full discussion
    Hi, Bob.Yes, CreatePDF will allow you to save a PDF file as a Word file, so you can then type and add text to that Word file. If you received it as an email attachment, it will be easiest to: 1) save it to your computer's desktop, 2) upload it to the CreatePDF service.Please let us know if you have additional questions or issues.Regards,Dave
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: Re: How do I keep text in a converted file??
    To unsubscribe from this thread, please visit the message page at Re: How do I keep text in a converted file??. In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Adobe CreatePDF by email or at Adobe Forums
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • How do I put text into an Edge File that clients can edit easily afterwards

    Hi
    Can anyone explain how I can put text into an edge file (styled with google fonts) and make it so that clients can access the text and update the text as they require?
    Previous suggestion was dynamically loading a .txt file - any instructions would be most appreciated.
    Thanks.

    Hi Resdesign!
    Your code is very useful to learn how to use Json in Adobe Edge Animate!
    But I have a question: why you use ( i ) as argument of the function UpdateInfo and when you recall it you use ( index )?
    $.getJSON('slides.json', function(data){
              //for(var i=0; i<data.length; i++){
    function updateInfo(i){
                        sym.$("photo").css({"background-image": "url('"+data[i].image+"')"});
                        sym.$("pillar").html(data[i].pillar);
                        sym.$("what").html(data[i].what);
                        // position
              index = -1;
              sym.$("btn").click(function(){
              index++;
                        if (index>=5){
                                  index = 0;
              updateInfo(index);
    Many thanks for your attention!
    Davide

  • I am a computer novice, but how do I change text in a pdf file?

    I am a computer novice, but how do I change text in a pdf file that was sent to me?

    I would try Acrobat out, you can't do that in Adobe Reader.

  • How to search specific text/string in pdf files from command prompt?

    Hi,
    How to search specific text/string in pdf files from command prompt?
    Will be great if you can refer to any adobe provided command base utility to achieve the above target.
    Best Regards,

    You can't. The commandline parameters for Acrobat and Adobe Reader do not allow any type of commands to be run.

  • How we can load external html or php file in flash?

    Hi there,
    I want to show my php's file desing in flash..
    i m getting data through database in php file and it has
    table... so I want to show that data in my flash movie...
    Please help me ..
    How can I load external html or php file in flash?
    If any other way is there then plz tell me.....
    thanx

    No.  Flash can only display html content in textfields and only supports a very limited number of html tags (look up the htmlText property of TextFields).  So to display an html/php file is not possible.

  • How to center a text in numbers

    I am having a little bit of a hard time trying to center a text between 3 or more columns.... how can I do that?

    Threre are a few options:
    1) select the three cells and merge them, then enter the text and open the cell formatter and center the text horizonatlly.  NOTE:  merging cells often causes unexpected problems
    2) create a text box and type the text, then format as horizontally centered.  Place the text box over the  cells, set the fill pattern to the same as the cells
    3) create another table to be the header :
    and set the cell width for one cell to be the same as three in the "other" table
    There are porbably more ways than this.  Hopefully one of these will work for you or you will suggest another that works.

  • How to center the text in JLabel without image?

    I need to center the text inside JLabel, how do i do it?
    Also I need some advise, what is the best way to mark a clicked card (I'm making a card game)?

    I found this method that controls that text alignment:you can try few more:
    label.setVerticalAlignment(JLabel.CENTER);    //these two would  center the label contents
    label.setHorizontalAlignment(JLabel.CENTER);
    label.setHorizontalTextPosition(JLabel.CENTER);Thanks!

  • How to write this sql query in php code ?

    for example:
    insert into temp
    select *
    from testtable;
    after this, i will query data from sql below:
    select *
    from temp;
    how to write this php code ?
    who can help me ?
    thanks!

    Have a look at the manual to find out how to issue queries.
    http://us3.php.net/oci8

  • Can Someone Tell Me How to Do This Text Effect?

    Ok so this video has this text effect that I spent 2 days looking on how to do it! http://www.youtube.com/watch?v=LATGUNnlUr8
    The text effect starts at 0:47-0:49
    I tried looking for plugins and etc but I just can't find any that do this or something similar to it! It would mean a lot if you could tell me how to do it ^^

    The text itself simply appears character by character.  The "Typewriter" animation preset will do the job.  Additionally, there's a spray of particles accompanying the text.  You could generate these with the CC Particl World plugin.  You'll need to match the floor of the effect to the floor of your shot/background.  Animate the location of the particle generator to match the locatio of the appearing text.  Finally, apply some Glow.

  • "This file was created by Oracle Reports. View this document in Page Layout mode" , how to avoid this text

    we print some RTF Files , we dont want to  print to paper  this text "This file was created by Oracle Reports. View this document in Page Layout mode"
    How to able do it.
    Tanks for reply.

    we print some RTF Files , we dont want to  print to paper  this text "This file was created by Oracle Reports. View this document in Page Layout mode"
    How to able do it.
    Tanks for reply.

  • How to add a comment in a php file which has html code

    Hi
    I have a html file which I renamed .php after adding a form. I discovered that the html comment text I was using - <!--this is a comment --> - was affecting how the page rendered, particularly in IE9.
    My question is, now that it is a php file do I need to change all the comments syntax? I started to do it using the "apply comment" button in CS5 i.e. syntax: <?php /*?>form<?php */?>.
    Is this the right way to do it? It gives "php" icons in design view but appears to render ok.
    Thanks

    PHP comments:
    <?php
    //This is a comment
    This is
    a php comment
    block
    ?>
    Use PHP comments inside PHP scripts/code.
    HTML comments:
    <!--comment-->
    <!--this is
    an html comment
    block-->
    Use HTML comments inside HTML code.
    CSS Comments:
         /*comment*/
         /*this is
         a css comment
         block*/
    Use CSS comments inside CSS code (either embedded or external).
    JavaScript comments:
    //this is a single line comment
    //this is another single line comment
    /*this is a multi-line
    javascript
    comment
    Use JavaScript comments inside JavaScript code (either embedded or external).
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • Can't view Wordpress PHP files in Dreamweaver CC.

    Mac. MAMP.
    I have downloaded my full site hosted on xxxx into MAMP htdocs.
    Download directly from root public_html on host.
    I keep getting "Dynamically-related files could not be resolved because the site definition is not correct for this server"
    Even if I go "live view" and set - Web URL to: www.indochinaexplorers.com (my site) - instead of http://localhost, it comes up with a lot of PHP boxes.
    Been through all tutorials for more than a week.
    Have been through all possible settings and configurations under "Manage Site"
    Did a Test - New PHP page. Same thing, it does not show, design or live view.
    So stuck,
    Thanks Peter

    I have the same issue and none of the alleged Guru's that answered have provided anything useful.  Solid Web Design is about workflow, which could lead to innovation if people would stop reverse innovation language...Dreamweaver could be a viable wordpress solution if it worked as it's supposed to. CC is a bust as the focus has shifted to mobile first. 
    There are no "real pages" for you to edit in DW; just code fragments.
    Wordpress is dynamically driven but this is untrue.  Every PHP file in a theme has structure and is a "real page".  Fragments have to be in a "file" to be called, they are not called out of thin air.  If I want to style page.php, it cannot be done without first adding selectors.  #mainContent for example. The only thing php does is add dynamic functionality.  Page.php can be altered and saved as Page_fullwidth.php, Page_Music.php ,Page_webDesign.php and they can all have a different layout in the same theme.  Else there would be no templates to choose from in the static page section of the WP Admin area. 
    Themes drive the appearance and functionality of your WP site.  If you need a new look, find a different Theme and install it from your WP Dashboard.
    How does this help?
    Unless you are very familiar with PHP code and more specifically the PHP code WP uses, you will not have good results working in DW.   You really must use the WP Dashboard to manage your content, Themes, and plugins.
    This has nothing to do with the issue.  The issue is Dreamweaver simply does not allow propper editing of wordpress sites in a dynamic environment.  No one ever said they didn't know anything about php, creating wordpress themes, plugins, and so on...
    Dear next genius..Since the question has already been asked, I won't ask it again, but the original inquiry is my issue as well.  If you have figured out how to make this work, please respond, if not, please don't.
    Mac

  • How can I place text from an external file as an updatable link?

    Currently we create presentation documents InDesign. Each presentation page is a linked Illustrator file (the file contains drawings and description texts). We write the text in Illustrator instead of over it in InDesign because multiple designers/writers will work on each page. We have text that sometimes appear on multiple pages, this text has previously been copied and pasted into each Illustrator file that it needs to appear in, this is inefficient and prone to error.
    Is there a way to link to a text file in Illustrator that remains updatable? I poked around here and found information relating to Variable Data – things similar to Data Merge in InDesign. This isn't the solution I'm looking for however. It seems like a plugin or script is the solution.
    much appreciated
    Ray

    I have to imagine that you have good reasons for structuring the workflow as you describe. However, this:
    We write the text in Illustrator instead of over it in InDesign because multiple designers/writers will work on each page.
    doesn't make sense to me. Between the two, InDesign, (particularly CS6), is far more capable of efficiently supporting a linked-single-source-of-text workflow than Illustrator...without any additional plugins or scripts.

Maybe you are looking for