News:

Wondering if this will always be free?  See why free is better.

Main Menu

Need help changing default theme banner

Started by Henshin, December 26, 2017, 03:16:40 PM

Previous topic - Next topic

Henshin

Hello SM forum,

I need to overhaul a forum running SMF 2.0.15 for work. I've got it looking better with a theme I found and tweaked slightly, and I've added a background and tweaked some colors and it hasn't been too bad.

But I cannot find out how to get rid of and/or change this default banner...

(click on pics for bigger size)


I've built about 10 sites before and am familiar and comfortable with html/css/javascript,..but I just can't seem to figure this out.

I've looked through every file I can find though the 'manage/edit themes' section of forum software and I can't find where to change that. Every index.php file or variation I find is small and says basically that it's defaulting to a parent index file, but I can't seem to find the parent index file with the div that has that url in it.

When I target the element with Dev Tools it shows it in an index file I can't find, and shows it having a url (which is directing back to the images folder),..but I can't even find the code where that url is to try putting in a different url.



and when I tried changing the smflogo picture for another picture with the same name,..it broke,..everything somehow. And made the board look like just text on a white background. (I'm still not sure how that happened.)

I'm not familiar with php and sql, like I said I was basically told to make the forum look more attractive and being comfortable with html/css/javascript I really didn't think it would be that difficult. But I really cannot find where this code is.

I even took the theme apart and searched through each file with a text editor line by line (and with a 'find' tool),..and still couldn't find this section of code.

I thought maybe it was in $settings,..but nope. I thought maybe it's buried in css or somwhere,..but no luck.

Then I thought maybe the Default SMF theme is the 'parent'? and it might (somehow?) be that index file as the main one? But that didn't work either.

the theme I'm tweaking is called: Karanlik-Lord (2.0 )
and the board software is running: SMF 2.0.15

I looked through some of the SMF support docs, and I googled the problem hoping to fix it, and it pretty much just led me to here, so here I am.

Hopefully someone can help me. I've got the board looking about 90% the way they want it, it's this last 10% that's really getting me. I just need to replace that banner with another one that has a link embedded in it. So people click on the banner and it takes them to another site.

Another issue I'm having (though not nearly as large as a banner I can't find)...is these lines don't line up. I haven't even begun to search for this issue yet as I spent all day on the banner. But I figured I'd include this in this thread.



Thank you for your time SM forum. I've never really been stumped before so I hope you guys/gals can help me figure this out.


edit:

Right now the forum is still running the old default theme, I've allowed users to be able to change themes so I could work on this one without messing with the actual forum. So I can give out a link to the forum but it's still displaying the old theme.

I can create a guest account if someone needs to look around on the board though, not a problem.

Thanks again.

Sir Osis of Liver

The banner is /Themes/Karanlik-Lord/images/smflogo.png, it's called in index.template.php here -



</h1></div><div class="logo">', empty($settings['site_slogan']) ? '<img class="smflogo" src="' . $settings['images_url'] . '/smflogo.png" alt="'.$txt['logotitle'].'" title="'.$txt['logotitle'].'" />' : '<h2 class="text-right">' . $settings['site_slogan'] . '</h2>', '</div>';



You can replace it with your own logo image with same name, or change the filename in the template.  In either case it shouldn't break the forum.

I'm not seeing what doesn't line up in third screenshot.
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Henshin

thank you for responding.

if you click the photo it should get bigger. The lines under 'views' it drops down then comes back up. Where the small circles are are where it's dropping down and coming back up.

basically it's not one continuous unbroken line.

it IS really hard to see though and I'm really not too worried about it. I'm not even sure anyone is going to notice it.

Henshin

 
Quote from: Sir Osis of Liver on December 26, 2017, 03:52:37 PM
The banner is /Themes/Karanlik-Lord/images/smflogo.png, it's called in index.template.php here -



</h1></div><div class="logo">', empty($settings['site_slogan']) ? '<img class="smflogo" src="' . $settings['images_url'] . '/smflogo.png" alt="'.$txt['logotitle'].'" title="'.$txt['logotitle'].'" />' : '<h2 class="text-right">' . $settings['site_slogan'] . '</h2>', '</div>';



You can replace it with your own logo image with same name, or change the filename in the template.  In either case it shouldn't break the forum.

I'm not seeing what doesn't line up in third screenshot.

I can't replace it with my own image because there's no way to upload a pic into the file manager in the SM software. I can only install a complete theme. And when I put my own image in the theme and uploaded it, it broke the theme and the entire forum just displayed like..stock html, for the most part.

I found that call in the template but it's not a url.

I feel like I'm stuck. There's no file manager, the theme has to be installed completely, and whenever I mess with the theme before install it doesn't work when I try to switch to that theme, (though I would think it should, changing an image file to another image with the same name shouldn't change anything really.)

I wish I could upload a new image to the image file, and then find the part of the code that references that URL and change it, but I can't find that URL in the code anywhere.

In the screencap of Dev Tools it shows the URL where it says SRC,..I can't find that, I can't find the Index file that Dev Tools is referencing either.

It's kind of frustrating to be honest. Every other site I've worked on had a file manager for uploading and moving files around but I can't find anything like that here. All I can do is install themes.

I was able to add the background in CSS and keep it fixed, but I just can't figure out what to do about that banner. I've never been stumped like this before.


in the code you posted if I put an offsite URL where it says:

'<img class="smflogo" src=" offsite URL here'

...will that work? And override what is there?

Sir Osis of Liver

Don't really understand your problem.  Is it your host account?  Can't you upload files using cpanel filemanager or FTP?
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Henshin

I was made an Admin, but no I don't seem to have access to any kind of file manager.

They basically just asked me to make the site look better and made me an Admin. But I'm not running the server or the SQL database or anything, someone else does all that.

Sir Osis of Liver

Ok, you can link to an external image in Admin -> Current Theme -> Logo image URL.  This should display your logo top center, buit it does not remove the existing logo.  To do that, you need to edit index.template.php.  There's a template editor in Admin -> Current Theme -> Modify Themes, but it doesn't work on my server, I get 403 error. 

Other thing you can do is uninstall the theme, unzip the theme file, change the image, zip it and reinstall.
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Henshin

Quote from: Sir Osis of Liver on December 26, 2017, 04:46:01 PM

Other thing you can do is uninstall the theme, unzip the theme file, change the image, zip it and reinstall.

that was the first thing I tried and that's what broke it. It made the forum look like plain html with no css or formatting. Just text against the left side of the screen against a white background.

it broke everything,..and all I did was replace one image with another image of the same name (and size!)...I still don't understand why that happened.

It's why I was saying I've been stumped. I've never had such a difficult time changing one little thing like this.

I'll look into the other ways you mentioned. Thank you.

Sir Osis of Liver

Hmm, seems I can edit css in theme editor.  You can try this -

Admin -> Current Theme -> Modify Themes -> Karanlik-Lord (2.0 ) -> Browse the templates and files in this theme..  Click on css then index.css.  Find this -



.logo{width:100%;margin:6px auto;text-align:center}



Change to this -



.logo{width:100%;margin:6px auto;text-align:center; display: none;}



That will remove the default theme logo, and you can use external link for your logo, as posted above.

You really need to have cpanel and ftp access if you want to manage the forum.
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Kindred

As a note...   issue and questions regarding specific themes should be asked of the theme author in the support thread dedicated to supporting that theme
Сл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."

Henshin

thanks you Sir Osis of Liver, I'll try that today.

Quote from: Sir Osis of Liver on December 26, 2017, 04:57:32 PM
You really need to have cpanel and ftp access if you want to manage the forum.

Yeah it's sure made things more difficult.




I didn't know there was a support thread for specific themes.

Kindred

every theme and every mod available form our customization site has a link to the support topic dedicated to that mod or theme on the download page for that mod/theme.
If the mod/theme is from a different site, then support should be asked of the author on that site. :)

In general, we don't (and can't) support other people's mods or themes since we have no specifics what the author may have done for coding and don't have the time to read every mod/theme. :D
Сл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."

Advertisement: