The filing fee to be paid to the county elections official for filing a declaration of candidacy for an office to be voted for wholly within one county other than a legislative or congressional office shall be as follows:
(a)
No filing fee is required from any candidate for an office for which no fixed compensation is payable, or for which the annual salary is two thousand five hundred dollars ($2,500) or less.
(b)
A filing fee of 1 percent of the annual salary of the office shall be paid to the county elections official by each candidate for a judicial office or for a county office. This subdivision shall not apply to any candidate for any office for which the annual salary is two thousand five hundred dollars ($2,500) or less.
The filing fee shall be calculated on the basis of the annual salary for the office on the first day to circulate petitions to gather signatures in lieu of filing fees.