2024-11-22, 12:42 AM
Hi, would it be possible for me to use both sprites and custom images as buttons for a theme?
I ask because I am ok with using the sprites for the postbit buttons and other icon images for my theme, but the only images I want to replace are the buttons for add reply, etc.
I came across an old tutorial for replacing the sprites with images, however, it requires me to change this:
to this:
I understand that the buttons that come after this are the others that use the sprite images much like in the first code, however the only buttons I like to change are for the ones for the topic itself. Currently, the buttons are using a background image and are using a font for both the text label and font awesome for the icons themselves. I would like to replace both removing the label and icon, but ONLY for the New Topic, New Reply and Closed buttons only while using the sprites for everything else.
Is there a way I can do this without it negatively affecting the other images above? I figured that it would be best if I ask first, rather than chancing on messing something up trying to do so..
Thank you in advance for the help.
I ask because I am ok with using the sprites for the postbit buttons and other icon images for my theme, but the only images I want to replace are the buttons for add reply, etc.
I came across an old tutorial for replacing the sprites with images, however, it requires me to change this:
a.button span {
padding-left: 20px;
display: inline-block;
background-image: url(images/buttons_sprite.png);
background-repeat: no-repeat;
}
a.button.new_thread_button span {
background-position: 0 -340px;
}
a.button.new_reply_button span {
background-position: 0 -360px;
}
a.button.closed_button span {
background-position: 0 -380px;
}
to this:
a.button span {
padding-left: 20px;
display: inline-block;
}
a.button.new_thread_button span {
background: url('images/buttons/new_thread.png') no-repeat;
}
a.button.new_reply_button span {
background: url('images/buttons/new_reply.png') no-repeat;
}
a.button.closed_button span {
background: url('images/buttons/closed.png') no-repeat;
}
I understand that the buttons that come after this are the others that use the sprite images much like in the first code, however the only buttons I like to change are for the ones for the topic itself. Currently, the buttons are using a background image and are using a font for both the text label and font awesome for the icons themselves. I would like to replace both removing the label and icon, but ONLY for the New Topic, New Reply and Closed buttons only while using the sprites for everything else.
Is there a way I can do this without it negatively affecting the other images above? I figured that it would be best if I ask first, rather than chancing on messing something up trying to do so..
Thank you in advance for the help.
Thank you in advance for your time, and as always I appreciate any help offered.
List of unsolved MyBB Support issues..
https://community.mybb.com/search.php?ac...&uid=81844
List of unsolved MyBB Support issues..
https://community.mybb.com/search.php?ac...&uid=81844