• Resolved steve02a

    (@steve02a)


    Thanks to another user, he mentioned to me how to change the text of the header from default to whatever text I want.

    This information was located in the widget_out.php file.

    Now I’d like to center the text.

    Here is the code from the widget_out.php file:

    <?php
    	if( $is_widget ){
    		echo $before_widget . $before_title . '<span id="LoginWithAjax_Title">' . __('Existing Customer Log-In') . '</span>' . $after_title;
    	}
    ?>

    Since this is included in a <span> tag, I can’t really use a text-align:center (this would be suited for a <div> tag.

    I tried changing the <span> to be:
    <span id="LoginWithAjax_Title" class="login">
    Then I added a little snippet of CSS code:
    .login {text-align: right;}

    But that didn’t work. I tried text-aling: center too. Didn’t work.

    Would anyone know how I can center this text?

    https://www.ads-software.com/extend/plugins/login-with-ajax/

Viewing 1 replies (of 1 total)
  • Thread Starter steve02a

    (@steve02a)

    Nevermind this question. I solved it.

    I put a <div> tag right after the tick (‘) mark of <span>.

    <div id="login2"><span id="LoginWithAjax_Title">' . __('Existing Customer Log-In') . '</span></div>

    Then I added the ID “login2” to css and formatted it in CSS.

Viewing 1 replies (of 1 total)
  • The topic ‘Center Widget Header text…’ is closed to new replies.