• Resolved vikram0811

    (@vikram0811)


    Hello, Thom !,

    Thanks for the awesome plugin and I find it excellent. I have two questions for you.

    1) How can I change the order for column names in table ? Currently the order is Type, Filename, Date and Size. How can I change it to appear as
    Filename (Filenames aligned to left), Date, Size and Type

    2) Search has placeholder=”SEARCH”. I tried making it lowercase by changing in class ssfa-searchfield:active {} with property text-transform:none. But somehow its not working. How can I change the placeholder text “SEARCH” to “Search”

    Thanks.

    https://ww.wp.xz.cn/plugins/file-away/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author thomstark

    (@thomstark)

    Glad you like the plugin.

    1) Unfortunately, that’s not an option. Sorry.
    2) I’ve tried some CSS as well with no luck. Placeholder styling is rough. So you’ll have to do it the old fashioned way.

    Open up wp-content/plugins/file-away/lib/inc/inc.precontent.php

    It’s on line 21. Replace this:

    "<input id='filter-$uid' class='ssfa-searchfield' placeholder='".__('SEARCH', 'file-away')."' value='' name='search' id='search' type='text' />".

    with this:

    "<input id='filter-$uid' class='ssfa-searchfield' placeholder='".__('Search', 'file-away')."' value='' name='search' id='search' type='text' />".

    Thread Starter vikram0811

    (@vikram0811)

    Thanks for responding. I am able to change the placeholder text as you mentioned above.

    For changing column order, can we do something like below.

    <script type="text/javascript">
            jQuery( ".ssfa-sorttype" ).after( ".ssfa-sortname" );
        </script>

    I have not tested it, but just a thought.

    Plugin Author thomstark

    (@thomstark)

    You could to something like that, yeah. Might be intensive if there are a lot of files on the page.

    Thread Starter vikram0811

    (@vikram0811)

    Hello, Thom !,

    I tried adding above code in my header.php, but somehow can’t get it to work.

    Do you have any workaround for this ?

    Thanks

    Plugin Author thomstark

    (@thomstark)

    I just tried a bunch of different methods to do this and I can’t get any of them to work either.

    Plugin Author thomstark

    (@thomstark)

    Even if you got it to work, it would mess up Manager Mode something fierce.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Change column order in table’ is closed to new replies.