Skip to content

Tag: wordpress

PHP: Check if current URL is part of defined URL

I want to check of the current URL is part of a pre-defined URL. For example: I want to check if the domain example.com/shop/ is part of the viewed URL. I’m using the following function to get the current URL and a pre-defined ($shop_page_url) URL: In this case it only works if the $shop_page_url is the…

Flaticons not showing up on WordPress

I have almost finished converting an HTML website over to WordPress but I couldn’t something to work. I am just creating a new theme to switch the website over. Here is the link to see what it should look like, There are three icons that are not showing up, right under the about section. And here is the…

.htaccess redirect /subpage/ to /subpage?/wp-login

Trying to use .htaccess rule to do the wp-login JS check on first visit by appending ?/wp-login to the url since it’s interferring with Sucuri firewall when using password protection. I’ve created a test subdomain to try to get the htaccess redirect to work before using it on the live site: view h…