How to add class depending on Url with PHP?

306
June 12, 2017, at 00:44 AM

I have a global id I need to add a new class for /register page. So that I can change the styles specifically on this page. How can I do this on php?

<div id="wrap" {{ if url is /register add new class }} >...</div>
Rent Charter Buses Company
READ ALSO
Image saving with PHP isnt working in wordpress admin function

Image saving with PHP isnt working in wordpress admin function

On my Wordpress site, i have a function that gets the user images that are set in their user profile (ACF fields), and combines them together to create a grid image for them to download

287
Parse several urls in an array with PHP

Parse several urls in an array with PHP

I've coded a PHP code that retrieves some data from an urlIt first download the HTML and then parses some data

310
Download With Current User Time As Filename

Download With Current User Time As Filename

How can I make a file's name contain the user's local time upon downloading it? Example:

179
php about search symbols in string [on hold]

php about search symbols in string [on hold]

Добрый день! Заранее извиняюсь, что писал в такой манере - много текста, но по другому никакПомогите пожалуйста разрулить следующую ситуацию

382