3
Well I’ll try to explain it as best I can, I know it can be simple but at the same time I don’t know how I can do it...
Let’s say in my Header I have a 'bar' that I would like to appear on all pages that I pull the MINUS header into the index because of a Slide that I put...
(in case that blue bar I wanted it to appear on all pages except in index)
Solution if it is a div in itself.
<?php
var_export($_SERVER['REQUEST_URI']);
$array = explode("/", $_SERVER['REQUEST_URI']);
$url = str_replace("/", "", $_SERVER['REQUEST_URI']);
$pagina = end($array);
if ($url != 'apcefsp') {
?>
<div><img src="http://localhost/apcefsp/wp-content/uploads/2017/10/ficha-1.png" alt="" width="100%" height="5"/></div>
<?php
}
?>
Is there any way to pull the different header ? or any CSS that makes such a div not appear except in index ?
Ta very vague, put details of what is really taking place to facilitate understanding...
– Jefferson Otoni Lima
I put an image to better understand ( the bar is a div )
– Axcse
That bar comes from a
include()
in php ?– Isac
@Axcse If I understand correctly it’s not just not putting the Html bar code on the Index page.
– LeAndrade
@Isac yes from Header
– Axcse
Send print_r($_SERVER); so you can see what’s happening there and show you the best way.
– Jefferson Otoni Lima