Kategoria: wordpress

Własne tłumaczenie jakiegoś wyrażenia w woocommerce

Funkcja do functions.php umożliwiająca własne tłumaczenia pól odporne na aktualizacje woocommerce. Sprawdzi się w sklepie z 1 językiem // Zmiana tłumaczenia "Adres rozliczeniowy" na "Adres na fakturę" add_filter('gettext', 'translate_reply'); add_filter('ngettext', 'translate_reply'); function translate_reply($translated) { $translated = str_ireplace('Adres rozliczeniowy', 'Adres na fakturę', $translated); return $translated; } Funkcję można ograniczyć tylko do strony koszyka korzystając no z: … Czytaj dalej Własne tłumaczenie jakiegoś wyrażenia w woocommerce

Wtyczki dla bezpieczeństwa wordpressa

SUCURI pokazuje nieudane próby logowania, pokazuje wyedytowane pliki systemowe, ma możliwość włączenia firewall (płatna usługa miesięczna) WP SECURITY QUESTIONS Dodaje w panelu logowania do wordpressa dodatkowe pytania. Dla każdego użytkownika można zdefiniować inne pytanie. Login LockDown plugin Ogranicza liczbę logowań z błędnym hasłem do podanej liczby

14 tips to protect wordpress

http://www.wpbeginner.com/wp-tutorials/11-vital-tips-and-hacks-to-protect-your-wordpress-admin-area/ Are you seeing a lot of attacks on your WordPress admin area? Protecting the admin area from unauthorized access allows you to block many common security threats. In this article, we will show you some of the vital tips and hacks to protect your WordPress admin area. 1. Use a Website Application Firewall A … Czytaj dalej 14 tips to protect wordpress

Wyłączenie aktualizacji pluginu

https://stackoverflow.com/questions/17897044/wordpress-how-to-disable-plugin-update OPCJA 1 Put this code in the theme functions.php file. This is working for me and I'm using it. Also this is for specific plugin. Here you need to change plugin main file url to match to that of your plugin. function my_filter_plugin_updates( $value ) { if( isset( $value->response['facebook-comments-plugin/facebook-comments.php'] ) ) { unset( $value->response['facebook-comments-plugin/facebook-comments.php'] … Czytaj dalej Wyłączenie aktualizacji pluginu

Dodanie do woocommerce brutto i netto

  https://tomjesch.com/display-woocommerce-products-with-and-without-tax/   Display WooCommerce products with and without tax I’ve recently run into the problem that is not possible for a WooCommerce shop to display both VAT and EX. VAT prices at the same time. Though this was possible in earlier version (if I remember correctly). Sure, there are many plugins that are able to … Czytaj dalej Dodanie do woocommerce brutto i netto

Zabezpieczenie wordpressa

Brak usera z id nr 1 Usunięcie informacji o wersji wordpressa z metatagów admina Zmiana lokalizacji pliku wp-config i praw chmod function remove_version() { return ''; } add_filter('the_generator', 'remove_version'); https://codepen.io/philhoyt/pen/ujHzd http://wpmagus.pl/pliki/prezentacje/wyczaruj-sobie-spokoj/#/26 https://wordpress.tv/2017/08/20/bartosz-romanowski-bezpieczenstwo-to-podstawa/ https://kb.sucuri.net/plugins/WordPress+Plugin/email-alerts

Usunięcie ładowania contact-form-7 z niechcianych podstorn

Contact form 7 ma się wyświetlać tylko na stronach typu "page" i nie na stronie głównej W functions.php dodajemy: add_filter( 'wpcf7_load_js', '__return_false' ); add_filter( 'wpcf7_load_css', '__return_false' );} a w head dodajemy uruchomienie skryptu dla wybranych podstron: <?php //włączenie contactform7 if ( function_exists( 'wpcf7_enqueue_scripts' ) && is_page() && ! is_front_page() && ! is_home() ) {wpcf7_enqueue_scripts();} if … Czytaj dalej Usunięcie ładowania contact-form-7 z niechcianych podstorn

WordPress usunięcie ładowanego skryptu – dequeue script

Przykład: szablon ładował skrypt: wp_register_script( 'canvasloader', 'http://heartcode-canvasloader.googlecode.com/files/heartcode-canvasloader-min-0.9.1.js',array('jquery'),null,true); wp_enqueue_script( 'canvasloader' );   w pliku functions.php Usunęłam ładowanie skryptu w moim szablonie dodając z functions.php: function wpdocs_dequeue_script() { wp_dequeue_script( 'canvasloader' ); } add_action( 'wp_dequeue_script', 'wpdocs_dequeue_script', 1000);  

usunięcie ładowania css na wybranych podstronach wordpress

https://wordpress.stackexchange.com/questions/217881/remove-css-styles-from-specific-page   I need to remove all theme (both child and parent) css styles from a singular page using functions.php in a child theme. Here's what I'm currently adding to the child's functions.php // import parent and child theme css function theme_enqueue_styles() { wp_enqueue_style('parent-style', get_template_directory_uri() . '/style.css'); wp_enqueue_style('child-style', get_stylesheet_directory_uri() . '/style.css', array($parent_style));} // remove the … Czytaj dalej usunięcie ładowania css na wybranych podstronach wordpress

Infekcje pharma, viagra w wordpressie

https://blog.sucuri.net/2016/09/cleaning-the-wp-page-pharma-hack-in-wordpress.html Cleaning the Wp-Page Pharma Hack in WordPress September 6, 2016Tony PerezEspanolPortugues Pharma hacks are common website infections categorized under SEO spam. With pharma hacks, the attacker exploits vulnerable websites to distribute pharmaceutical content to search engines and the sites visitors. Symptoms of a pharma hack include embedded links and anchor text on pages or modified … Czytaj dalej Infekcje pharma, viagra w wordpressie

Jak wykonać 2 kolumny w menu wordpress?

źródło: http://www.prowebdesign.ro/wordpress-sub-menu-items-split-in-2-columns-the-easy-way/ WordPress sub-menu items split in 2 columns. The easy way. Let’s say you have a long list of items in one of your WordPress sub-menu drop downs. It is often the case with Products or Services sections of the site. So, you probably want those sub-menu items to be split in 2 columns. But you … Czytaj dalej Jak wykonać 2 kolumny w menu wordpress?

dostępne shortkody dla wtyczki Display Posts Shortcode

przykład: https://github.com/billerickson/display-posts-shortcode/blob/master/README.md#display-posts-shortcode Display Posts Shortcode Contributors: billerickson Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=MQKRBRFVRUV8C Tags: shortcode, pages, posts, page, query, display, list Requires at least: 3.0 Tested up to: 4.6.0 Stable tag: 2.7.0 Display a listing of posts using the shortcode Description The Display Posts Shortcode was written to allow users to easily display listings of posts without knowing … Czytaj dalej dostępne shortkody dla wtyczki Display Posts Shortcode

zwiększanie wydajności wordpressa – ograniczanie treści PLUGIN WP-OPTIMIZE , image cleanup plugin

Usuwanie starych postów, draftów postów i nieużywanych tabel w bazie danych: PLUGIN WP-OPTIMIZE 2. Usuwanie nieużywanych mediów image cleanup plugin - kiepskie recenzje!! UWAGA 3. Usunięcie niedziałających linków: Clean Up Broken Links 4. Optymalizacja bazy danych: Clean Up Database Ad 1) PLUGIN WP-OPTIMIZE. Żródło: https://woorkup.com/delete-old-wordpress-revisions-db/ Updated: September 26, 2016 14 Comments How to Delete Old WordPress … Czytaj dalej zwiększanie wydajności wordpressa – ograniczanie treści PLUGIN WP-OPTIMIZE , image cleanup plugin

Usunięcie komentarzy do wordpressa przez functions.php

https://dfactory.eu/turn-off-disable-comments/ WordPress has a builtin comments system that works pretty well. However in some cases, especially if you use WordPress as a CMS, not a blogging platform, you may find it dispensable. For some of us turning off comments in Discussion settings is enough, but what if you want to disable access to the comments … Czytaj dalej Usunięcie komentarzy do wordpressa przez functions.php

Jak dodać śledzenie konwersji formularza contacform7 dla wordpressa?

1) Instalacja pluginu https://pl.wordpress.org/plugins/contact-form-7-success-page-redirects/ 2) Edycja KODU (przekierowanie)  NIE DZIAŁA!! The simplest way is utilizing Contact Form 7’s custom DOM event to run JavaScript. The following is an example of script that redirects you to another URL when the wpcf7mailsent event occurs: 1 2 3 4 5 <script> document.addEventListener( 'wpcf7mailsent', function( event ) {     location = … Czytaj dalej Jak dodać śledzenie konwersji formularza contacform7 dla wordpressa?

Woocommerce shortcodes

https://docs.woothemes.com/document/woocommerce-shortcodes/   WooCommerce > 2.1.x Shortcodes: [woocommerce_cart] – shows the cart page [woocommerce_checkout] – shows the checkout page [woocommerce_order_tracking] – shows the order tracking form [woocommerce_my_account] – shows the user account page If you would like to learn more about the new WooCommerce 2.1 setup, see: Endpoints documentation. WooCommerce < 2.1.x Shortcodes: [woocommerce_edit_account] – Edit account pages [woocommerce_change_password] – shows the change … Czytaj dalej Woocommerce shortcodes