How to load rtl.css file without changing lanuage to persian in wordpress?

# if you want to enqueue your style in you theme, rtl or else function theme_enqueue_scripts() { # enqueue style in your theme wp_register_style( ‘rtl’, get_template_directory_uri() . ‘/css/rtl.css’, array(), ‘1.0.0’ ); wp_enqueue_style( ‘rtl’ ); } add_action( ‘wp_enqueue_scripts’, ‘theme_enqueue_scripts’ ); # if you need enqueue this, just if theme is rtl , copy this function function … Read more

Multilanguage website on two different domains

Method 1. You can use .pot file to store translation and use wordpress default translator functions for all of your strings such as __e() Method 2: It is better to use any translator plugin since it will do all the necessory work for you. Few of them are here https://wpml.org/ https://wordpress.org/plugins/polylang/

Search result page as a new page

You can use custom template for search page: <?php get_header(); ?> <section id=”primary” class=”content-area”> <div id=”content” class=”site-content” role=”main”> <?php if ( have_posts() ) : ?> <header class=”page-header”> <h1 class=”page-title”><?php printf( __( ‘Search Results for: %s’, ‘shape’ ), ‘<span>’ . get_search_query() . ‘</span>’ ); ?></h1> </header><!– .page-header –> <?php shape_content_nav( ‘nav-above’ ); ?> <?php /* Start … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)