News:

SMF 2.0.19 has been released! Please update. Read more.

Main Menu

Safely remove site slogan

Started by Shades., February 10, 2022, 06:39:53 PM

Previous topic - Next topic

Shades.

How can I safely remove the site slogan code:

        ', empty($settings['site_slogan']) ? '<img id="smflogo" src="' . $settings['images_url'] . '/smflogo.svg" alt="Simple Machines Forum" title="Simple Machines Forum">' : '<div id="siteslogan">' . $settings['site_slogan'] . '</div>', '';
So I could put a banner there without breaking the header section?

Do I just remove that whole code and put my banner there or how? (Surely not that simple lol)

Basically I want to put an adsense banner there somehow. I have one there now but the site slogan is all bunched up to the left of it and looks horrible lol! ;)
ShadesWeb.com - Custom Logos - My Themes on SMF | My Themes on ShadesWeb
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

Antechinus

Quote from: Shades. on February 10, 2022, 06:39:53 PMDo I just remove that whole code and put my banner there or how?
Basically, yes. :D You already have the banner there, and it's working, so the only problem is the slogan.

Other option is to ignore the template coding (if PHP templates freak you out) and just do it with CSS:
#smflogo, #siteslogan {display: none;}

Shades.

Perfect! Yes I like the css option better! ;D
ShadesWeb.com - Custom Logos - My Themes on SMF | My Themes on ShadesWeb
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

Advertisement: