SimplePortal

Customization => Themes and Graphics => Topic started by: dopeitspaul on August 23, 2014, 07:09:24 PM

Title: "Custom Title Class" Not Working
Post by: dopeitspaul on August 23, 2014, 07:09:24 PM
Hey everyone, I have side blocks on the right and the title bar is matching with my category bar. I was trying to add my own custom title class from my index.css but nothing happens, it's still using the default title class.

Anyone know how to get custom title class to work? Thanks
Title: Re: "Custom Title Class" Not Working
Post by: phantomm on August 24, 2014, 06:18:42 AM
What block are you using?
Title: Re: "Custom Title Class" Not Working
Post by: dopeitspaul on August 24, 2014, 03:27:09 PM
What block are you using?

Profile and a Recent Post (Custom PHP)

(http://i218.photobucket.com/albums/cc263/xguillotinezx/phpbb/Screenshot2014-08-24at122427PM_zpscaf2f8fc.png)
Title: Re: "Custom Title Class" Not Working
Post by: oNLy1 on August 24, 2014, 09:22:07 PM
make sure the class is actually in the CSS of the theme being used
then double check that you have called the class (or style) properly via the block settings

remember it should be 'mytitle' and not '.mytitle' or any other variants
just the name (no apostrophe)
Title: Re: "Custom Title Class" Not Working
Post by: dopeitspaul on August 25, 2014, 12:37:25 AM
make sure the class is actually in the CSS of the theme being used
then double check that you have called the class (or style) properly via the block settings

remember it should be 'mytitle' and not '.mytitle' or any other variants
just the name (no apostrophe)

Yeah I made sure of that but it still not working. Still matches the category bar which is what I'm not trying to do. Thanks though!
Title: Re: "Custom Title Class" Not Working
Post by: dopeitspaul on August 25, 2014, 01:30:27 AM
Maybe this could be another way of solving it. In the drop down menu of when you click the "default title class" is there a way I can add my own custom css in that menu?

Here's a pic of the menu I'm talking about
(http://i218.photobucket.com/albums/cc263/xguillotinezx/phpbb/Screenshot2014-08-24at102454PM_zps1e12d2b3.png)
Title: Re: "Custom Title Class" Not Working
Post by: oNLy1 on August 26, 2014, 01:52:52 PM
Quote
In the drop down menu of when you click the "default title class" is there a way I can add my own custom css in that menu?

Yes - I am not sure if the code is the same now as this is an old post ..but will lead you to what you want
http://simpleportal.net/index.php?topic=4403.msg27057#msg27057 (http://simpleportal.net/index.php?topic=4403.msg27057#msg27057)

You'll just need to add a single line to Themes/default/PortalAdminBlocks.template.php file.

Code: (Find) [Select]
                           <option value="windowbg3"', $context['SPortal']['block']['style']['body_default_class'] == 'windowbg3' ? ' selected="selected"' : '', '>windowbg3</option>
Code: (Replace) [Select]
                           <option value="windowbg3"', $context['SPortal']['block']['style']['body_default_class'] == 'windowbg3' ? ' selected="selected"' : '', '>windowbg3</option>
                           <option value="classname"', $context['SPortal']['block']['style']['body_default_class'] == 'classname' ? ' selected="selected"' : '', '>classname</option>

Change the classname as the name of class you want to add to that list.
Title: Re: "Custom Title Class" Not Working
Post by: [SiNaN] on October 11, 2014, 06:57:18 AM
Unfortunately, we can't do much about this due to the SMF header bars markup. The best you can do would be either to add your own class manually or choose 'catbg' and style it using custom title class and style options.
SimplePortal 2.3.8 © 2008-2024, SimplePortal