function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Elad Kaplan 3Elad Kaplan 3 

Change button text using CSS in Community

Hi,

I'm using a CSS to style one of my client's community.

I have a requirement, where they want to replace the text on the 'Attach File' button of the Notes and Attachments related list to 'ADD ATTACHMENT'.

I'm trying to do so but with no luck, here's my CSS code : 

 input[name="attachFile"] { 

    visibility: hidden;
    position: relative;
}

 input[name="attachFile"]:after{
      
      position: absolute;
      content: 'ADD ATTACHMENT';
      visibility: visible;
 }


Anyone ? 
Best Answer chosen by Elad Kaplan 3
Andy BoettcherAndy Boettcher
It is not supported or recommended to futz around with the standard buttons/layout - you may have better luck explaining "that's just what Salesforce calls that button."

All Answers

Andy BoettcherAndy Boettcher
It is not supported or recommended to futz around with the standard buttons/layout - you may have better luck explaining "that's just what Salesforce calls that button."
This was selected as the best answer
Elad Kaplan 3Elad Kaplan 3
Thanks Andy, That what i thought, I manged to completely change the look and feel of the community as per the client's request.

That was the only thing I couldn't do.

Guess you can't do everything..