Website Development Prices

Search Blog

Saturday, December 21, 2019

How to create child theme in wordpress

There is one main reason why I like to create child theme in Wordpress - if I make some changes in theme, for example, css or to the theme, when next update of theme comes and I update a theme, all changes will be gone. Unless I have a copy somewhere else, except on website, I would need to start over. While to keep a copy of website is good practice, it's also good practice to create a child theme.
The other reason is, whatever you have in child theme will overwrite what's in parent theme.   

Note: this child theme will be created locally - on my computer, not live website and I will be using twentyseventeen theme as an example. 

1) Go to your themes folder. Local Disk (C:) -> xampp -> htdocs -> police-dept-1 (this is the name of your database when you installed Wordpress) ->wp-content -> themes.




2) In folder themes create new folder, name it like your theme-child, in this example, twentyseventeen-child. You can name it however you want, but it's recommended this way.


Wednesday, July 24, 2019

How to set up a basic HTML page to redirect to another page

Place this code in the head section.

You can use both meta, and JavaScript code:

<!DOCTYPE HTML>
<html lang="en-US">
    <head>
        <meta charset="UTF-8">
        <meta http-equiv="refresh" content="0; url=http://marijarikic.com/en/index.html">
        <script type="text/javascript">
            window.location.href = "http://marijarikic.com/en/index.html"
        </script>
        <title>Page Redirection</title>
    </head>

    <body>

    </body>
</html>

Instead of marijarikic.com/en/index.html place your link.