Widget Tricks
4 posters
Page 1 of 1
Re: Widget Tricks
Forum URL?
Sanket- ForumGuru
- Posts : 48766
Reputation : 2830
Language : English
Location : Mumbai
Re: Widget Tricks
Seems like your forum is on maintenance.
Sanket- ForumGuru
- Posts : 48766
Reputation : 2830
Language : English
Location : Mumbai
Re: Widget Tricks
Hello ultracheat45 ,
The main class for the widgets of phpbb3 is 'module' :
.module is the parent of all the content within the widget, so you can use any other selector to select the element you want to modify. a for anchors ( links ), div for all div elements, b / strong for all bold elements ect..
.module .h3 can be used to style the module title.
Additionally if you want to keep it to only the widgets of the forum use the column ID before the module class.
#right .module for the widgets in the right column
#left .module for the widgets in the left column
This can also allow you to make the design of the widgets for each column different.
Example :
Then just choose the CSS properties you want to use to style your widgets and that's that.
The main class for the widgets of phpbb3 is 'module' :
- Code:
.module { background:yellow; }
.module .h3 { color:red; }
.module is the parent of all the content within the widget, so you can use any other selector to select the element you want to modify. a for anchors ( links ), div for all div elements, b / strong for all bold elements ect..
.module .h3 can be used to style the module title.
Additionally if you want to keep it to only the widgets of the forum use the column ID before the module class.
#right .module for the widgets in the right column
#left .module for the widgets in the left column
This can also allow you to make the design of the widgets for each column different.
Example :
- Code:
#left .module { background:red; }
#right .module { background:blue; }
Then just choose the CSS properties you want to use to style your widgets and that's that.
Re: Widget Tricks
last question before i make this solved. how do i replace the header bar with an image? i've search some methods they just don't work.
Re: Widget Tricks
If you wanted to change the h3 title of a widget to an image you would have to use javascript :
Placement : In all the pages
You have to use the exact spelling of the title
to overwrite it with a image :
Placement : In all the pages
- Code:
jQuery(document).ready(function() {
jQuery('.module .h3:contains(Latest topics)').html('<img src="http://2img.net/i/fa/fdf_en3/nouvea19.png" />');
});
You have to use the exact spelling of the title
- Code:
:contains(Latest topics)
to overwrite it with a image :
- Code:
.html('<img src="http://2img.net/i/fa/fdf_en3/nouvea19.png" />')
Re: Widget Tricks
Solved => Locked
Jophy- ForumGuru
- Posts : 17922
Reputation : 836
Language : English
Location : Somewhere
Similar topics
» Scaling Widget Background Image Based on Widget Size/User Resolution
» How to do this Advanced Hiding Widget Code as well as the Recent Topic's Widget Modification
» Tips and Tricks: Buttons To Add Prefixes
» Broken Tips & Tricks
» Computer tips & tricks
» How to do this Advanced Hiding Widget Code as well as the Recent Topic's Widget Modification
» Tips and Tricks: Buttons To Add Prefixes
» Broken Tips & Tricks
» Computer tips & tricks
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum