A
A
Apxitektop2017-04-27 19:31:20
CMS
Apxitektop, 2017-04-27 19:31:20

How to set file path in wordpress?

Transferred the site from the host to openserver, now all connected files are not connected. The code says the following

<link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/style.css" type="text/css" media="screen, projection" />

I don't understand php but like <?php bloginfo('template_directory'); ?> should give out exactly the path to the right place.
I put the entire WordPress folder in the /centrstroy folder. In the browser through openserver gives
<link rel="stylesheet" href="http://cs-remont.ru/wp-content/themes/epixx/style.css" type="text/css" media="screen, projection">

Of course, you can change the code to
<link rel="stylesheet" href="http://centrstroy/wp-content/themes/epixx/style.css" type="text/css" media="screen, projection">
and the styles will be included, but I want to understand exactly how to change the path in <?php bloginfo('template_directory'); ?>.
And how to disable site caching, chrome desperately caches styles. "no-cache" doesn't help. Thank you.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Denis Yanchevsky, 2017-05-04
@deniscopro

Moved website from host to openserver

If they simply copied it, then the old cs-remont.ru address remained in the database. Try to transfer using the Duplicator plugin - it will replace the occurrences of the old address with the new one.

@
@ksider, 2017-04-27
_

bloginfo('template_directory'); this is the path to the theme directory, not to the wordpress root

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question