News:

Join the Facebook Fan Page.

Main Menu

Logo

Started by bharat, September 14, 2015, 07:12:07 AM

Previous topic - Next topic

bharat

I would like to know if it is possible to make logo on top of the page longer? Now I have like on the first attachment file and I would like something like on the second.

Kindred

what theme are you using?


Depending on that it may require a little or a lot of coding or CSS changes
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

bharat

I am using the default theme.


bharat

Which one do I need to change then?

bharat

Is it also possible to hide avatars on the main page, if they have any where it says Hello bharat?

Antechinus

Quote from: bharat on September 14, 2015, 10:54:51 AM
Which one do I need to change then?

Just make the CSS changes listed in the OP of that thread. Upload your new banner and see how it looks. If you want further tweaks, post another screenshot and point out what changes you want.


Quote from: bharat on September 14, 2015, 11:48:21 AM
Is it also possible to hide avatars on the main page, if they have any where it says Hello bharat?

Add this to the end of index.css:

.user .avatar {display: none;}

bharat

I wounder if it is possible to fit banner like in this site? http://stri-ga.ru/forum3/index.php

Antechinus

Yes, it's possible.

Steve

DO NOT pm me for support!

bharat

What should I do for that?

Antechinus

:D Ok, the presentation you asked about in the first post of this thread is completely different to what you are now asking about. Nothing personal, but I don't want to get into providing you with fifteen different alternatives, one after the other, according to your current whim.

What I suggest you do is play around with cut and paste screenshots or whatever until you have a presentation you are happy with, and are likely to stay happy with. Once you have decided what you really want I (or someone else) will tell you how to do it. :)

bharat

I changed the old banner and got a problem. I need to make it in the center but somehow it doesn't change, what should I do? Any suggestions?

bharat

Can someone suggest how to move banner to the center?

Steve

DO NOT pm me for support!

bharat

Thanks for the help, I followed the instruction and when I changed this part the new logo disappeared completely so I have to change to the old code again:

Quote from: margarett on July 22, 2015, 04:32:52 PM
The "problem" is that you have SMF's logo (or your slogan) on the right side

Find this (index.template.php):
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>

Replace with:
// 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>', '
echo '
</div>


Now find find (index.css)
/* the main title, always stay at 45 pixels in height! */
h1.forumtitle
{
line-height: 45px;
font-size: 1.8em;
font-family: Geneva, verdana, sans-serif;
margin: 0;
padding: 0;
float: left;
}

remove that "float:left;" line

find
/* clearing the floats */
#top_section
{
min-height: 65px;
overflow: hidden;
margin-bottom: 3px;
}

replace with:
/* clearing the floats */
#top_section
{
min-height: 65px;
overflow: hidden;
margin-bottom: 3px;
text-align: center;
}


Should work.

edit: ninja'd :P

margarett

Given your first screenshot, it suggests that you added the logo on the forum slogan part. The code I wrote (I have no memory about it :P ) puts the forum slogan or SMF logo away, that's why your logo disappears.
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

bharat

Do I still need to change this code if I want to keep the logo in the center?

bharat

What should I do if I want that logo is displayed on full screen? If I try to make it longer then it doesn't fit correctly.

margarett

Do you want the logo to occupy the full forum width? If that's the case, look at the link Ant put out before:
Quote from: Antechinus on September 14, 2015, 09:25:09 AM
http://www.simplemachines.org/community/index.php?topic=523994.0
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Advertisement: