WP_SITEURL', '/' & 'WP_HOME', '/'

Multipurpose WordPress Theme Forum Support
GK User
Sat Oct 10, 2015 10:10 pm
Hi there!
If I define in wp-config.php
Code: Select all
// ** WP relative links ** //
define('WP_SITEURL', '/');
define('WP_HOME', '/');

then not work Customize function on any page except frontpage. In example I can't open Features → Additional Pages → Contact Page section in customize menu.
User avatar
Junior Boarder

GK User
Sun Oct 11, 2015 5:18 pm
Hi,

Did you try to use options onn the Settings->General screen instead?
And why you didn't add full URL, only '/' ?
User avatar
Moderator

GK User
Mon Oct 12, 2015 11:31 am
Piotr Kunicki wrote:Hi,
Did you try to use options onn the Settings->General screen instead?

Sure. Settings page not access set "/" in field «WordPress Adress (URL)» and «SiteAddress (URL)»
Image
After WP_SITEURL and WP_HOME defined in wp-config.php, the fields on Settings page become inactive.
Image

Piotr Kunicki wrote:Hi,
And why you didn't add full URL, only '/' ?

The absolute links are a big problem for me. If I want to use even ssl on all pages when images continue to use http. :cry: The defining by "/" solves this problem.
User avatar
Junior Boarder

GK User
Mon Oct 12, 2015 12:14 pm
Please check this discussion:
http://stackoverflow.com/questions/1718 ... -wordpress

Contact page settings in Customizer are only visible on contact page template, so after your modifications the URL pobably is not correct.
User avatar
Moderator

GK User
Tue Oct 13, 2015 1:50 pm
Piotr Kunicki wrote:Please check this discussion:
http://stackoverflow.com/questions/1718 ... -wordpress

Contact page settings in Customizer are only visible on contact page template, so after your modifications the URL pobably is not correct.

Hi, Piotr!
It's really true. I tryed to use for customizing this URL https://mysite.com/wp-admin/customize.php?url=%2Fcontacts%2F, it was working. When using default generated link ( https://mysite.com/wp-admin/customize.php?url=https%3A%2F%2Fgelius.biz%2Fcontacts%2F) only frontpage opens.
User avatar
Junior Boarder


cron