After transferring the site to another host and trying to save changes in the admin panel, for example, such a code: <p class="block"> <svg xmlns="http://www.w3.org/2000/svg" width="700" height="72" viewBox="0 0 700 72"> <text x="0" y="70">Stroked text</text> </svg> </p> I get an error: Not Acceptable An appropriate representation of the requested resource …
Read More »Text with border/border around text in css
This article describes two options for decorating text with a border around the text along the path of the same text. There are, of course, more of these options. But I usually use the ones listed below. Example 1, crappy: using the text-shadow property text-shadow: 1px 0 0 red, -1px …
Read More »How to change the width for Vk and Facebook widgets from pixels to percentages
Very often I need to replace a narrow widget, which for some reason is assigned to VKontakte with a fixed width of 300px, with a percentage, for example 100% – in order to be displayed on the entire width of the side column. The solution is simple, make changes to …
Read More »How to show hidden files in Finder?
By default, the Finder does not show any files or folders that begin with a dot. To allow Finder to show hidden files, run the following command in the console: defaults write com.apple.finder AppleShowAllFiles TRUE ; killall Finder To hide the display of hidden files again, use the command: defaults …
Read More »On_sent_ok not working in Contact Form 7
If your site uses the old version of WordPress and the Contact Form 7 plugin, it is enough to use the code in the Advanced settings tab: on_sent_ok: "yaCounterXXXXXXXX.reachGoal('mygoal');" Where XXXXXXXX is the counter ID in Yandex Metrika, mygoal is the name of the goal that was previously created in …
Read More »How to recursively replace a domain, word, or phrase in a database
I describe this task using the example of a transferred WordPress site to another folder of another domain. To implement it, you need to search the database by domain name, you will see in which tables there are records with this domain. Then make a SQL query in the format: …
Read More »How to host Wp site in a separate folder of the domain
This article is about moving a site to an internal folder of another site. 1. Transfer site files to a new folder. 2. Export the database, in the dump change the old domain to the new one (with the folder name). For example, newdomainname.com/folder (Important! Do not put a slash …
Read More »Service tags for Contact Form 7
The most common question is “How to find the Contact Form 7 url of the page from which the form was filled out?” Here is a list of service tags that can help you get data about the user who filled out the form: [_remote_ip] Sender's IP address [_user_agent] User …
Read More »Warning: include cfg/tables.inc.php в Shop Script
I am not a fan of Shop Script, but his glitches are easily fixed. An error was found on the site in the filter, in the admin panel when working with the removal of additions to the product, etc. The error is always the same: Warning: include(./cfg/tables.inc.php) [function.include]: failed to …
Read More »How to generate ssh key on mac
This instruction is small, obvious and simple. Open a terminal, enter the command: ssh-keygen -t rsa Hooray, the key is created! cat ~/.ssh/id_rsa.pub Thus, the contents of the public key are displayed. If you work with GitLab, then inside you just copy the contents to Account – Settings – SSH …
Read More »