SimplePortal
Customization => Themes and Graphics => Topic started 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
-
What block are you using?
-
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)
-
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)
-
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!
-
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)
-
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.
<option value="windowbg3"', $context['SPortal']['block']['style']['body_default_class'] == 'windowbg3' ? ' selected="selected"' : '', '>windowbg3</option>
<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.
-
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.