Author: Stasyuk Eugene 145 Tags: 17.12.2022

How to remove the prefix “Category, Label …” from archive pages?

Place the filter in the functions.php file in our theme folder

/*
* Remove prefix in acrhive titles
*/
add_filter('get_the_archive_title_prefix', '__return_empty_string');

How to remove the scale of images when uploading to media?

Place the filter in the functions.php file in our theme folder

/*
* Remove image scaling
*/
add_filter( 'big_image_size_threshold', '__return_false' );

How to style scrollbar (css)?

body::-webkit-scrollbar {
  width: 8px;               /* width of the entire scrollbar */
}

body::-webkit-scrollbar-track {
  background: #fff;        /* color of the tracking area */
}

body::-webkit-scrollbar-thumb {
  background-color: #000;    /* color of the scroll thumb */
  border-radius: 4px;       /* roundness of the scroll thumb */
  border: 1px solid #fff;  /* creates padding around scroll thumb */
}

Why doesn’t search work on a WordPress site in other languages?

Perhaps we should pay attention to the value of the action attribute in our search form. Using the example of my site, the main page in English is available at the following address: https://jecosjmecos.com.ua/en/main/ . If we use this address in an action, our page url will be https://jecosjmecos.com.ua/en/main/?s=favs . In this case, we will get to the 404 page, since the search page will only be available if we remove the main from the address. Therefore, in this case, the action should contain the address https://jecosjmecos.com.ua/en/ and the url of the search page will look like this https://jecosjmecos.com.ua/en/?s=favs.

Other articles

How to Translate a WordPress Theme to Another Language перевод

How to Translate a WordPress Theme to Another Language

How to Translate a WordPress Theme to Another Language

While working on creating a WordPress theme, we often come across such inscriptions as “upload more, author, tags”, etc. For example, as in my blog: It’s good when the site is in one language. Then you don’t really need to do anything with them. But what to do when the site is multilingual. If the […]

Popup window on the site (modal window) pop-up window

Popup window on the site (modal window)

Popup window on the site (modal window)

When I was just learning the basics of development, I used to make a popup window manually. Yes, yes – instead of finding some ready-made solution, I did this thankless task 🤪. It seemed to me that there was nothing particularly complicated about it. But, only after some time of working on this issue, I […]