inherit
266922
0
Sept 24, 2022 14:50:00 GMT -8
jgbunny73
1
September 2022
jgbunny73
|
Post by jgbunny73 on Sept 19, 2022 4:30:30 GMT -8
I'm a bit lost with this, but how do I find where the create_thread button or text in the code is? I want to change the 'button' look OR the background behind the text (if its just text)
I do see in the Board, some code that says "create_thread_button" but I don't see any image for such a button in the images section of the Admin Panel with the other images.
|
|
inherit
Official Code Helper
65613
0
1
Oct 22, 2024 1:56:19 GMT -8
Chris
"'Oops' is the sound we make when we improve"
9,024
December 2005
horace
RedBassett's Mini-Profile
|
Post by Chris on Sept 19, 2022 7:57:23 GMT -8
I'm a bit lost with this, but how do I find where the create_thread button or text in the code is? I want to change the 'button' look OR the background behind the text (if its just text) I do see in the Board, some code that says "create_thread_button" but I don't see any image for such a button in the images section of the Admin Panel with the other images. The $[create_thread_button] variable basically outputs the following HTML <a href="/thread/new/666" role="button">Create Thread</a> (all major browsers come with a built-in debugger nowadays so simply right-click the create thread button on any page where it exists and choose "inspect" to see the HTML markup) so if you want to modify the HTML you would need to output it directly (instead of using the variable) {if $[create_thread_button]} <ul class="controls"><li><a href="/thread/new/$[board.id]" role="button">Create Thread</a></li></ul> {/if} You are then free to modify it as desired (e.g. replace the "Create Thread" text with an image) If what you want can be accomplished using just CSS then using a selector of .container.threads .title-bar .controls a[href*="/thread/new/"] will allow you to target just that button and the weight of that selector (4 classes, 1 tag and 1 attribute selector) should get you past the weight of most CSS I've seen targeting that button thus override them.
|
|