Now more and more websites use SSL, which the URL start from “https”. We can set WordPress websites to use https by settings->general->WordPress Address (URL) & Site Address (URL) to “http://www.caosir.com”. But one problem is when visitor put http://www.caosir.com, the URL can’t redirect to “https”, so we can use .htaccess to redirect HTTP to HTTPs by followed code.

Read More

Today we’re going to look at how you can use php to add blocks, both static CMS blocks and blocks that include things like featured products, we can use this line of php in any of our phtml files within the template folder of our themes. Although the same result can be replicated using the XML layout files, this can be used as an alternative way of getting the same result.

Read More