Wordpress reads logo only on localhost

1

In the site that I made the logo works when I'm testing at home with localhost, but on the site it does not read.

<img id="logo_topo" class="img-responsive" src="<?php bloginfo('template_url'); ?>/imagens/logo.png" alt="Logo" />

When I inspect the element the src in localhost mode is:

src="http://localhost/site/wp-content/themes/site_tema/imagens/logo.png"

Thesitelookslikethis:

src="/site/wp-content/themes/site_tema/imagens/logo.png"

Can anyone help?

    
asked by anonymous 17.10.2016 / 21:21

2 answers

0

Change the folder reference to get_template_directory_uri()

It will look like this:

<img id="logo_topo" class="img-responsive" src="<?php echo get_template_directory_uri(); ?>/imagens/logo.png" alt="Logo" />
    
18.10.2016 / 03:34
0

Try to leave it just like this:

/wp-content/themes/site/imagens/logo.png

Leave this path alone and test it with CTRL + F5.

Here it worked for me.

    
19.03.2018 / 20:53