How to make the front-end RTL without changing the admin panel language?

Set your WordPress to a RTL language, then use the following code in functions.php or as the plugin: <?php add_filter( ‘locale’, ‘my_set_admin_locale’ ); function my_set_admin_locale( $locale ) { // check if you are in the Admin area if( is_admin() ) { // set LTR locale $locale=”en_US”; } return( $locale ); } Or otherwise, set WordPress … Read more

How can I add an additional action button into the woocommerce admin order page?

Add this below code your current active theme functions.php file add_filter( ‘woocommerce_admin_order_actions’, ‘add_custom_order_status_actions_button’, 100, 2 ); function add_custom_order_status_actions_button( $actions, $order ) { if ( $order->has_status( array( ‘processing’ ) ) ) { // The key slug defined for your action button $action_slug = ‘invoice’; $status = $_GET[‘status’]; $order_id = method_exists($the_order, ‘get_id’) ? $the_order->get_id() : $the_order->id; // … Read more

How do I add a contact form?

There are many free and paid plugins you can activate to do this quickly and easily. Contact Form 7, Ninja Forms, and Caldera Form are very popular but there are many more. Just go to the WP Dashboard Plugin > Add New > Search for Contact Forms > Install > Activate > Go to Plugin … Read more

Is it possible to edit the styling of the admin panel from within a custom theme?

Everything you’re able to do in a plugin you could do in a theme. It’s more like that separation is preferred, see article: https://managewp.com/blog/themes-design-plugins-functionality Below an example adding editor stylesheet: /** * Registers an editor stylesheet for the theme. */ add_editor_style( array( ‘assets/css/bootstrap.min.css’, ‘https://use.fontawesome.com/releases/v5.3.1/css/all.css’, ‘style.css’, )); Below an example to add scripts to the WP … Read more

admin_enqueue_scripts not working

If you remove that conditional in the first line of the enqueue function, your scripts should load. I can’t see the broader context of why your function is written that way, but if you just copied it from a tutorial or something, you don’t need it here. Try: <?php function sunset_load_admin_scripts(){ wp_enqueue_media(); wp_register_script(‘sunset-admin-script’,get_template_directory_uri() .’/js/news_admin.js’, array(‘jquery’), … Read more

Admin multiple column sorting

Since WordPress already allows for the sorting of page titles alphabetically (either ascending or descending order), all that is actually needed is to add an Author filter. This can be achieved by adding the following to the functions.php file of your active theme: function rudr_filter_by_the_author() { $params = array( ‘name’ => ‘author’, // this is … Read more

Editing admin pages in WordPress [closed]

There are no templates for the admin pages. You have two options to manipulate them, anyway: Use filters to edit the pages (See the WordPress codex). Change the page using CSS (also using a hook or use an existing plugin like Add Admin CSS). There are more plugins that help you changing the admin backend … Read more