Архив автора: admin

How to write Python code in Notepad++

If you love Notepad and want to program with it, then in the case of the Python programming language, you need to use a special plugin. There are several plugin options for Notepad++ that interpret Python:

  • nppexec;
  • Python script;
  • PyNPP.

Читать

How to update old WordPress (1.x, 2.x, etc.) – the universal and simple way

The most concise instructions, from me personally:

 

0) If you have WordPress version 2.7 or higher – use automatic update. If not, read on (smiley face)

 

1) Backup site

 

(phpmyadmin database and files, download backup on the local).

Читать

How to rename a file extension in Python

Task: there is a file with the .raw extension in the folder and I need to rename this file to the same one, but with a different .txt extension – how can I do this?

Solution:

You need to import the os module, which has the os.path.splitext() and os.rename() methods. Using the os.path.splitext() method, you can split the source file into two parts – its name and permission, which falls into square brackets as [0] – name and [1] – permission. Next, you just need to glue the name with the new permission via os.rename(). Читать

How to insert google adsense ads on a wordpress site

After the abolition of the plugin for automatic embedding ads on a site under wordpress, I got discouraged and started googling what to do. In this post I’ll tell you my way of inserting ads into the site, which is not written anywhere. Source: wordpress, hueman theme, manually generated responsive ads google adsense ad units, suitable for mobile devices.

Читать

How to change the title of a wordpress site

To change the display of the title – the title of the site that appears in the browser – you must do the following:

 

  • go to the dashboard of the site
  • сhoose All in One SEO (if you do not have this plugin, this method will not help)
  • scroll down to Homepage settings and change Home Title

Читать

Hide the author of WordPress posts

By default, stupid Worldpress puts the user’s login in the author URL of each post. To remove this: in the child theme, in the file functions.php:

Читать