• Resolved jailsonjan

    (@jailsonjan)


    First I would like to say that the plug you created is very good, efficient and very functional.
    My question is simple, how do I reverse the order of presentation of the “Knowledge base” documents.
    I didn’t find any practical solution that didn’t touch the database codes.
    My documents are numbered and the first ones that were attached to the base were at the bottom of the screen.
    Is there any other way to do this via an “add_filter”?

    One more question:
    How do I display “Knowledge base” in page format and no longer in popups?
    Is there any way?

    Thank you!

    • This topic was modified 4 years, 2 months ago by jailsonjan.
    • This topic was modified 4 years, 2 months ago by jailsonjan.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author WC Lovers

    (@wclovers)

    Add this snippet to change knowledge base display order –

    add_filter( 'wcfm_knowledgebase_args', function( $args ) {
    	$args['order'] = 'ASC';
    	return $args;
    }, 50 );

    Add custom code(s) to your child theme’s functions.php
    In case you do not have child theme then add those using this plugin –?https://www.ads-software.com/plugins/code-snippets/

    How do I display “Knowledge base” in page format and no longer in popups?
    Is there any way?

    – Sorry, this will not possible as there is no such for the purpose.

    Thread Starter jailsonjan

    (@jailsonjan)

    Worked perfectly. Thanks for this solution.

    • This reply was modified 4 years, 2 months ago by jailsonjan.
    Thread Starter jailsonjan

    (@jailsonjan)

    To complete, since it may be useful for other people, to align the information in the “Knowledge base” on the left, just use this CSS.

    table.dataTable.display tr td:nth-child(2), table.dataTable.display tr td:nth-child(3), table.dataTable.display tr th:nth-child(2), table.dataTable.display tr th:nth-child(3) {
    text-align: left;
    }

    Plugin Author WC Lovers

    (@wclovers)

    Welcomes and thanks for sharing the CSS ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Reverse Knowledge base show’ is closed to new replies.