Cyklistika, programování, společnost, kultura

Rubrika: Programování Strana 8 z 22

HTML, CSS, PHP, MySQL, Javascript, JQuery, Wordpress …

Preventing Contact Form 7 WordPress Plugin From Loading Js And CSS On All Pages

(Zabránění pluginu WordPress Contact Form 7 v načítání Js a CSS na všech stránkách)

Převzatý článek

Contact form 7 is an amazing plugin that lets you add simple as well as complex contact forms to any post or page on your wordpress blog. The forms are super easy to create and work great.

Having said that, if you are using this plugin, you would have noticed that the plugin adds Javascript and CSS references to all your posts and pages irrespective of if or not that post or page has a contact form in it. Wouldn’t it be great if there was a way to stop this from happening and restricting the plugin’s JS and CSS references to only those pages that have a contact form? Well, there is a simple way to achieving this. Here’s what you need to do:

Conditionally Loading Scripts And Styles For WordPress Plugins

(Podmíněné načítání skriptů a stylů pro WordPress pluginy)

Převzatý článek

There are many plugins that tend to automatically add their JS and CSS files to all posts and pages of your blog even though you might be using the plugin’s functionality only on one or two pages.

For instance, a gallery plugin. You might have the gallery only on one page of your site, yet the plugin loads the required JS and CSS files on all pages. This is counter-productive and can negatively effect your site’s performance and page load speeds.

The good thing is that you can easily prevent this from happening by restricting a plugin’s scripts and styles only to specific posts and pages using the wp_dequeue_script and wp_dequeue_style functions. Here’s how.

Simple Ajax Chat

Simple Ajax Chat

Dashboard Widgets Suite

Dashboard Widgets Suite

How to add custom block editor css in WordPress

(Jak přidat vlastní css editoru bloků do WordPressu)

Převzatý článek

So you have changed the style of your WordPress child theme in style.css and see the changes on your WordPress website. But the style of the block editor remains the same when you are creating or updating your posts or pages.

Jak najít RSS feed pro kanál YouTube

RSS zdroj vašeho oblíbeného kanálu Youtube není z nějakého důvodu u kanálu uveden a těžko se hledá. Můžete si pomoci tímto hackem:

https://www.youtube.com/feeds/videos.xml?channel_id=id_kanalu

Za id_kanalu dosaďte jeho skutečné id, které je uvedeno v adrese kanálu za channel/, tedy v tomto případě z adresy https://www.youtube.com/channel/UC4ghMQ16P3acuKKXHTtkS7w je id kanálu UC4ghMQ16P3acuKKXHTtkS7w.

Další možnosti najdete v tomto článku.

Jak ve WordPress přeložit jakýkoliv řetězec

Převzatý článek

V některých případech, když potřebujete změnit překlad nebo přeložit textový řetězec, není vhodné zasahovat do pluginu, šablony nebo jádra. Jednodušším způsobem pak může být úprava překladu pomocí vlastní funkce.

Fontello – icon fonts generator

Fontello je nástroj pro rychlé zabalení vektorových obrázků do webfontů.

Advanced WordPress Backgrounds

Advanced WordPress Backgrounds

WordPress Popular Posts

WordPress Popular Posts

Powered by WordPress & Theme by Anders Norén