Jump to content
Jam

How to Right and Left Align the Texts.

Recommended Posts

Use this action hook.

<?php

add_hook('AdminAreaHeaderOutput', 1, function($vars)
{
    if ($vars['filename'] == 'invoices' AND !$_GET['id'])
    {

        $output .= <<<HTML
                    <style>
                    #sortabletbl0 tr td:nth-child(3) {
                       text-align: left;
                    }
                    #sortabletbl0 tr td:nth-child(7) {
                       text-align: right;
                    }
                    </style>
HTML;

        return $output;
    }
});

Result:

sample-226.thumb.png.84c8f81b5c8975170aba54c9d84bbb07.png

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated