Simple Machines Community Forum

Customizing SMF => Graphics and Templates => Topic started by: mickjav on August 05, 2021, 01:20:57 PM

Title: Simple machine test next to shrink header
Post by: mickjav on August 05, 2021, 01:20:57 PM
Am I allowed to remove the simple machines forum text next to the shrink header, If I am without another payment where can I find it.

thanks mick
Title: Re: Simple machine test next to shrink header
Post by: shadav on August 05, 2021, 01:30:55 PM
I don't understand what you mean, maybe take a screenshot of it?
and which version of smf is this for?

I'm assuming you mean like here on this site in the top left hand corner where it says simple machines

in your admin under server settings did you put in your forum title?
in your admin under current theme did you put in the url to your logo and/or did you put in your site slogan?

these 3 things will replace the default smf text/logo/images/ect
Title: Re: Simple machine test next to shrink header
Post by: mickjav on August 05, 2021, 01:36:35 PM
Added pic
Title: Re: Simple machine test next to shrink header
Post by: mickjav on August 05, 2021, 02:59:38 PM
I've found where the code is but still not sure about what to do any help would be appreciated.

// the upshrink image, right-floated
echo '
<img id="upshrink" src="', $settings['images_url'], '/upshrink.png" alt="*" title="', $txt['upshrink_description'], '" style="display: none;" />';
echo '
', empty($settings['site_slogan']) ? '<img id="smflogo" src="' . $settings['images_url'] . '/smflogo.png" alt="Simple Machines Forum" title="Simple Machines Forum" />' : '<div id="siteslogan" class="floatright">' . $settings['site_slogan'] . '</div>', '
</div>
<div id="upper_section" class="middletext"', empty($options['collapse_header']) ? '' : ' style="display: none;"', '>
<div class="user">';
Title: Re: Simple machine test next to shrink header
Post by: Kindred on August 05, 2021, 03:14:24 PM
yes, you can remove that.

there is no need to modify code....    that text will be replaced by the "Site Slogan" setting

...index.php?action=admin;area=theme;sa=settings

(it might be a setting option for each theme)
Title: Re: Simple machine test next to shrink header
Post by: mickjav on August 05, 2021, 03:23:21 PM
My site doesn't use a slogan I was thinking of just adding a . But would prefer to remove it as would drive my OCD nuts lol
Title: Re: Simple machine test next to shrink header
Post by: mickjav on August 05, 2021, 04:02:34 PM
In the end I just decided to remove the whole line as I don't use Slogans so don't need that bit.

', empty($settings['site_slogan']) ? '<img id="smflogo" src="' . $settings['images_url'] . '/smflogo.png" alt="Simple Machines Forum" title="Simple Machines Forum" />' : '<div id="siteslogan" class="floatright">' . $settings['site_slogan'] . '</div>', '

I did also read up on Ternary Operator But messed my first try up lol

mick