DĂ©sactiver l’admin barre de WordPress en Front-Office

La barre d’administration en front-office est bien pratique lorsque l’on est administrateur, contributeur ou auteur. Par contre, quand un simple visiteur ou membre connectĂ©, on n’est pas forcĂ©ment sensĂ© avoir accĂšs au back-office,  et l’admin barre peut donc ĂȘtre dĂ©activĂ©e.
Un moyen simple et rapide pour cacher cette barre d’administration pour tous les utilisateurs (plutît que de leur laisser le choix de le faire dans leur profil) est de coller cette ligne de votre fichier functions.php :

add_filter('show_admin_bar', '__return_false');

Pour cacher la barre Ă  certains types d’utilisateurs seulement, on peut utiliser un petit test conditionnel qui prĂ©cise que si un utilisateur ne peut pas Ă©diter un post, et donc on lui cache Ă©galement cette barre :

if (!current_user_can('edit_posts')) {
show_admin_bar(false);
}

Les utilisateur de types ; auteur, Ă©diteur, administrateur, auront toujours la barre d’administration visible, mais pas les autres !

Posted in Uncategorized

Corriger un changement accidentel d’URL dans WordPress

Vous venez de modifier par erreur l’adresse Web de votre site WordPress dans le panneau d’administration  ? Votre site WordPress est devenu inaccessible ?
Pas de panique, il existe une mĂ©thode simple pour rĂ©tablir l’accĂšs en 2 minutes :

Mettre Ă  jour les URLs de WordPress

Éditez votre fichier wp-login.php et localisez la ligne de code suivante :

require( dirname(__FILE__) . '/wp-load.php' );

Ajoutez ces 2 lignes de code supplĂ©mentaires qui indiquent oĂč se trouve votre installation de WordPress. Corrigez les URLs en fonction de votre situation :

update_option('siteurl', 'http://monsite.com/' );
update_option('home', 'http://monsite.com/' );

Prévenir un nouvel accident

Pour Ă©viter de modifier par erreur une nouvelle fois ces URLs, vous pouvez faire en sorte de griser et interdire de futures modifications de ces 2 champs permettant le changement d’URL de votre site WordPress. Il vous suffit de modifier votre fichier wp-config.php et d’y ajouter 2 lignes de code en dĂ©but de fichier aprĂšs l’ouverture de la balise PHP (personnellement, je l’ai ai ajoutĂ© Ă  la suite des autres lignes “define xxxxxxx” et cela a trĂšs bien fonctionnĂ©) :

define('jconcept__wp_HOME', 'http://monsite.com'); define('jconcept__wp_SITEURL', 'http://monsite.com');

Evitez un changement d’URL malencontreux avec un blocage par wp-config.php

Si vous retournez dans le module RĂ©glages puis GĂ©nĂ©ral, les 2 champs d’adresses sont Ă  prĂ©sent non modifiables.
Pour finir, dans votre tableau de bord, rĂ©glages, permaliens, configurez de nouveau vos options d’url rewritting; That’s all !

Posted in Uncategorized

Perfectly Designed Demos Are Here, Ready to Showcase Your Site!

With perfectly balanced clean style Kava theme becomes a natural choice if You’re looking for the theme to be easily transformed into E-Store, for example.

Kava contains 30 demos as for now, and we’re planning to release more! Except astonishing demos, Kava theme has more and more beneficial features for users, business, companies, developers, bloggers and other categories of users. Even if you are an absolute beginner in website building, you’ll appreciate Elementor page builder’s simplicity and comfortable visual mode. Jet plugins were specially developed to provide users with additional functionality in this page editor. Jet plugins main advantage is containing modules which are not included in standard Elementor bundle.


There Are No Limits to Define Your Style.

Add multiple WooCommerce widgets presented as pre-designed modules and equip your store with breathtaking widgets and elements, necessary for successful online trading. Your customers will appreciate your site look and definitely recommend it via their social media accounts. There are limitless options, which can be implemented. Kava theme fully meets the requirements of responsiveness to display your web site perfectly on all devices. Kava will adapt your site automatically, so your visitors will be able to enter the site from either mobile phone or stationery PC.

 

High Resolution Is Crucial

You get professionally prepared high resolution images with Kava. Your visitor’s screen size is detected and re-scaled version of your web page automatically delivered accordingly. You also get many other useful features.

Quick Updates for Better Editing

Kava is a unified mulipurpose theme with tons of options, features, innovative tools, high-quality images, top-notch plugins and many other elemets. Add multiple WooCommerce widgets presented as pre-designed modules and equip your store with breathtaking widgets and elements.

Lifetime Subscription gives you much wider opportunities of using the theme and its benefits. There is such an amazing service as lifetime updates of all plugins. Kava is equipped with such stunning plugins as JetElements, JetMenu, JetBlogs and other Jets. Besides, you will get all your plugins updated as well. This feature is great, because all of our plugins are beeing upgraded constantly.

You Get More with Lifetime Subscribtion

We enhance them with additional features, options and add brand-new tools, so your theme would work much better. Another benefit of lifetime subscribtion is access to all demos. In future we’re planning to update our demos collection with new items. Our today’s collection includes 30 demos. Their main characteristic is that they fit almost every topic. There are either variants for online shops, blogs, business companies and sport clubs. If you’re planning to expand your business spheres, this may be an attractive bonus for you!

Top-notch Blogging Tools at Hand

Kava is a unified mulipurpose theme with tons of options, features, innovative tools, high-quality images, top-notch plugins and many other elemets. With its affordable price it is more than beneficial for every user!

Kava is one of the most easy to use themes for WordPress, being at the same time incredibly functional! It fits either beginners, developers and bloggers. Stunning demos were designed by the best experts!