O
O
orsodev2020-07-25 09:26:00
open server
orsodev, 2020-07-25 09:26:00

Why images are not displayed on wordpress after site transfer to localhost? How to properly configure OpenServer?

Transferred the site from the hosting to localhost (OpenServer)
Some pictures are no longer displayed

In the code, the pictures are inserted as follows

<div class="item cst">
        <div class="form-group resortpro-search-checkin-block bg-white">
            %checkin_field%       
           <img src="/wp-content/themes/BizcorLuxury/images/calendar-light.svg" class="form-control-feedback arrow calendar_light">         
        </div>
    </div>

In the browser they are displayed like this
5f1bceb6f3364897105465.jpeg

How to configure OpenServer correctly?
Site to be
d:\Workout\localserver\OpenServer\domains\localhost\branson-destination\

The path that turns out
http://localhost/wp-content/themes/BizcorLuxury/images/calendar-light.svg

The right way
http://localhost/branson-destination/wp-content/themes/BizcorLuxury/images/calendar-light.svg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton, 2020-07-25
@Yadalay

Go to OpenServer's settings -> Select the "Domains" tab -> "Domain Management" set to "Manual + autosearch" -> Enter what you need in "Domain name" and "Domain folder" (here you need to select a folder "branson-destination" so that OpenServer looks at it).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question