News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

How to add a logo for the theme "Core"?

Started by petewadey, January 11, 2018, 10:39:41 AM

Previous topic - Next topic

petewadey

Is it possible to put 2 logo's side by side?
Thanks
Pete

Sir Osis of Liver

index.template.php



<div id="mainframe"', !empty($settings['forum_width']) ? ' style="width: ' . $settings['forum_width'] . '"' : '', '>
<div class="tborder">
<div class="catbg">
<img class="floatright" id="smflogo" src="', $settings['images_url'], '/smflogo.gif" alt="Simple Machines Forum" />
<h1 id="forum_name">';
echo '
<image src="http://www.domain.com/forum/Themes/core/images/logo1.png">
<image src="http://www.domain.com/forum/Themes/core/images/logo2.png">';
echo '
</h1>
</div>';

// Display user name and time.


Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

petewadey

Thanks for reply.
Do I add this in current theme script? and will this then give me 2 boxes in admin to add url to logo images?
Lastly, do I need to resize my image to fit, or is that automatic?
Pete

Deaks

Quote from: petewadey on January 12, 2018, 10:23:38 AM
Thanks for reply.
Do I add this in current theme script? and will this then give me 2 boxes in admin to add url to logo images?
Lastly, do I need to resize my image to fit, or is that automatic?
Pete

You do this proposed change in index.template.php
It is a direct call to the image and does not include any admin interface for the images.
Yes you need to set sizes yourself with the suggestion given.
~~~~
Former SMF Project Manager
Former SMF Customizer

"For as lang as hunner o us is in life, in nae wey
will we thole the Soothron tae owergang us. In truth it isna for glory, or wealth, or
honours that we fecht, but for freedom alane, that nae honest cheil gies up but wi life
itsel."

petewadey

Thanks, I'll give it a go and see how I get on. Is it ok to just add this script to the end of index template php? or does it matter where it is placed? And will my image need to be a png or can it be a jpeg?
Pete

Sir Osis of Liver

Noooooooooooo!!!   You can't just add code anywhere.  It replaces existing code in the template.  Search for the first line, you'll see where it is.  Image can be jpg, png, gif - just make sure you upload it to the correct theme directory.

Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Advertisement: