Home › Forums › Weaver Xtreme Theme › Download button background color
- This topic has 8 replies, 3 voices, and was last updated 11 months, 3 weeks ago by
openvoiceschoir.
-
AuthorPosts
-
September 23, 2025 at 16:42 UTC - Views: 47 #75954
Question 1:
To add a PDF file to my webpage, I select a FILE block and opt to show the DOWNLOAD button. The background color of the Download button is black and the button text is dark blue. Unfortunately, the black background makes it hard to read the button text. I would like the button to have a white background with a black border while keeping the button text dark blue. I have looked through the Appearance > Customize menu and can’t find where to make the changes I want.
Question 2:
Can I create a LIST block and then add a FILE block to the first item in the list?
September 23, 2025 at 17:55 UTC - Views: 45 #75955scrambler
ModeratorWe need a link to the page with the button to offer custom CSS to change its styling
September 23, 2025 at 23:42 UTC - Views: 42 #75956openvoiceschoir
ParticipantYou can find an example of the download button on openvoices.ca
This is on a public page so you do not need to login as a member.
September 23, 2025 at 23:48 UTC - Views: 40 #75957openvoiceschoir
ParticipantAnd while you are looking at this page, I find the font size is too small when I use the FILE block. Is there any way to have it be the same font size as all the content?
September 24, 2025 at 00:21 UTC - Views: 33 #75958User
ModeratorSeptember 24, 2025 at 01:38 UTC - Views: 27 #75959openvoiceschoir
ParticipantThe video suggested changing the File block into a group and then changing the background color of the group. While I could change the background color of the group, it had no impact on the background color of the Download button.
September 24, 2025 at 17:46 UTC - Views: 19 #75960This reply has been accepted as the best answer.
If there is no styling option in the block, The rule below added to the Theme Global Custom CSS Rule box should change it for the block file
.wp-block-file__button {background:white;border:2px solid black;}
If that does not work, try adding important
.wp-block-file__button {background:white !important;border:2px solid black;}If you ever want to change the text color, the text color comes from the default wrapper link.
You can change that globally, using the theme setting for the wrapper area link.
or use the rule below
.wrapper .wp-block-file a {color:red;}September 24, 2025 at 17:51 UTC - Views: 19 #75961scrambler
ModeratorFor the font can you be more specific.
Which text are we speaking of? Is it the text before the button ?
If so the font size is done by the rule below, so add that rule to the theme global custom CSS rule box with a different value
.wp-block-file:not(.wp-element-button) {font-size: .8em}
If any of the CSS does not seem to work, please leave the rule in and post back so we can check why
September 24, 2025 at 18:00 UTC - Views: 9 #75962openvoiceschoir
ParticipantThank you. Your “guess” what correct. I was wanting to change the text font size before the ‘Download’ button. Both your suggestions worked!
-
AuthorPosts
- You must be logged in to reply to this topic.

