I’ve already shown you how to replace the tagline area in the Eleven40 Pro theme with a new widget area however you can also replace it with an image.
This post answers this forum question:
I’d like to remove the site description (text) on my site between my menu bar and the content. In that space, I’d like to add an image.
On Studio Presses’ tutorials, I found some PHP code for removing the site description. When I tried to add it to my functions.php file, my whole site crashed, and I had to restore the functions.php file through my server’s FTP.
Note: There’s at least 20 reasons code doesn’t work or may cause your site to crash even though there’s nothing wrong with the code.
In this tutorial, i’ll provide 2 solutions which are fully tested and work:
- Display image before content sidebar wrap.
- Display image full width after the header.
Here’s the before shot which includes the tagline.
And here’s the result after adding the PHP code below to your functions file:
Alternatively, you can use the 2nd code snippet which displays your image after the header so it spans full width like this:
1. Image Before Content Sidebar Wrap
Here’s the code you should copy from the view raw link in the Gist and paste at the end of your child themes functions.php file using a text editor.
Make sure your path to your child themes images folder, file name and extension match exactly whats in the PHP code above.
2. Image After Header _ Full Width
This code adds your image after the header which displays full width: