• Welcome to Simple Machines Community Forum. Please login or sign up.
January 26, 2022, 09:23:25 PM

News:

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


Custom Top Menu

Started by smp420, May 15, 2010, 12:57:45 PM

Previous topic - Next topic

winky100

I like you mod. My font is smaller than yours. How can I change the font of the menu items?

smp420

Find this line in index.template.php
   // The code for the menu you installed dont you remember it?
   echo '
         <div id="site_menu" class="align_right" style="padding-top:9px;">


Change to
   // The code for the menu you installed dont you remember it?
   echo '
         <div id="site_menu" class="align_right" style="padding-top:9px; font-size:14px;">

change 14 px to make it bigger or smaller.
"Things turn out best for those who make the best of the way things turn out." -Jack Buck

ukhalik2


i installed this mod successfully,
but text background color is not showing up as its in demo pic.

smp420

Well the screenshots are from before I updated the mod as everyone wanted me to change the way it was. If anyone has that version they are welcome to share it.
"Things turn out best for those who make the best of the way things turn out." -Jack Buck

ukhalik2

Quote from: smp420 on June 04, 2010, 01:46:49 AM
Well the screenshots are from before I updated the mod as everyone wanted me to change the way it was. If anyone has that version they are welcome to share it.
there must be a background of the links :(

Afro

Which code block controls this top menu in the index.css

smp420

Quote from: ukhalik2 on June 04, 2010, 03:30:43 AM
Quote from: smp420 on June 04, 2010, 01:46:49 AM
Well the screenshots are from before I updated the mod as everyone wanted me to change the way it was. If anyone has that version they are welcome to share it.
there must be a background of the links :(

The way it is now there is no background until you hover over it.

Quote from: Afro on June 04, 2010, 04:02:29 AM
Which code block controls this top menu in the index.css
What are you trying to do, it uses the same styles as the menu.
"Things turn out best for those who make the best of the way things turn out." -Jack Buck

ukhalik2

okay, tell me. which file to edit to put background colour in links.

Afro

Quote from: Afro on June 04, 2010, 04:02:29 AM
Which code block controls this top menu in the index.css
What are you trying to do, it uses the same styles as the menu.
[/quote]

I m on a new theme with custom css folder. the facebook theme.
the theme header swallowed the links, so i need to change the colours.

smp420

Well I am on vacation right now but when I get back I will get it working on the facebook theme.
"Things turn out best for those who make the best of the way things turn out." -Jack Buck

Afro


MATTEK

Test failed on install

Quote2.     Execute Modification     .Sources/Admin.php     Test failed
      1.    Add After    .Sources/Admin.php    Test failed
SMF 2.0.1

Like Comics, Books, Movies or T.V. Shows? Read about them here!!

TheListener

As with all mods these files will have to be manually edited using the parser.

MATTEK

Quote from: Brack1 on June 06, 2010, 07:44:00 PM
As with all mods these files will have to be manually edited using the parser.

parser? lol What's the parser?

SMF 2.0.1

Like Comics, Books, Movies or T.V. Shows? Read about them here!!

TheListener

Where you download the mod is a box which says manual instructions for install.

Next to that is the parse button.

THIS IS ON ALL MODS

MATTEK

That's new to me. Thank you, though.
SMF 2.0.1

Like Comics, Books, Movies or T.V. Shows? Read about them here!!

MATTEK

I messed up. I tried the manual parse install and now I have a major display issues. www.the-ush.com. Check it out. I made copies of each of the files the mod edits incase something like this happens, but when I re-uploaded them the issues remained.

All of my text is oversized and I have a logo above my entire forum that I do not want there.
SMF 2.0.1

Like Comics, Books, Movies or T.V. Shows? Read about them here!!

smp420

I don't know how you got another banner there that isn't a problem with this mod but remove
       <div class="header" align="center">
     <img src="http://www.the-ush.com/Themes/default/images/tuhs5700.png" alt="" />
   </div>
from index.template.php
"Things turn out best for those who make the best of the way things turn out." -Jack Buck

MATTEK

That fixes the banner thing but my text is still huge.
SMF 2.0.1

Like Comics, Books, Movies or T.V. Shows? Read about them here!!

MATTEK

June 08, 2010, 03:10:48 AM #79 Last Edit: June 08, 2010, 03:28:07 AM by MATTEK
Actually, nevermind. Issue resolved. That sucks though. I wanted this mod.  :(

If I attach the file it failed on while installing with the package manager will someone give me a hand, please?  O:)

Oddly enough it's failing on admin.php
SMF 2.0.1

Like Comics, Books, Movies or T.V. Shows? Read about them here!!

Advertisement: