Wrexham have banned striker Paul Mullin from wearing boots featuring an offensive slogan about the Conservative Party.
Mullin, 27, revealed the custom-made boots on social media with pictures taken at the club's Racecourse Ground.
Wrexham, who are owned by Hollywood stars Ryan Reynolds and Rob McElhenney, said the photographs were taken without their knowledge or approval.
The National League club said they take a "neutral position" on politics.
They added that "the issue will be dealt with privately".
Wrexham's Conservative MP Sarah Atherton said she was grateful for the club's swift response to Mullin's social media post and that a line had been drawn under the matter.
A Wrexham statement said Mullin will continue to be a significant part of their bid to gain promotion but described his post as an "unwelcome distraction" before a game at home against Halifax on Tuesday, 25 October.
"The club can confirm that the boots revealed by Paul Mullin on social media will not be worn tonight, or in any other Wrexham AFC fixture, and that the photographs taken at the Racecourse Ground were done so without our knowledge or approval," the statement read.
"For the record, the pictures wouldn't have been permitted to be taken, had we known, and the issue will be dealt with privately by the club.
"The club has adopted a neutral position on many matters with a political dimension and intends to continue to do so going forward.
"The club also acknowledge that everyone is entitled to their own opinion, whether that be employees or supporters but would also highlight that an individual view cannot be fairly attributed, as the view of everyone or the club itself.
"There is no more prominent example of this than the fact that the MP for the constituency within which the club is found, is a Conservative seat.
"After this unwelcome distraction, the club hopes the focus remains on our objectives of gaining promotion on the field and creating community benefit off it, in which Paul Mullin will continue to play a significant part."
In a statement, Atherton said Mullin's boots reflected "the view of one individual rather than the club as a whole".
The MP added: "Players might not be aware of the hard work that is going on behind the scenes for the betterment of the club, the community and the fans, which I am working tirelessly alongside the club and others to deliver.
"I am extremely grateful for the club's speedy response in dealing with this matter and we can now draw a line under this.
"I know that we will continue working closely together and I look forward to supporting Wrexham AFC wholeheartedly going forward."
Mullin became arguably the most eye-catching signing so far during Wrexham's Hollywood era when he signed from Cambridge United in July 2021.
The Liverpool-born forward has scored 11 goals in 14 appearances this season, having been named National League player of the year last season after scoring 30 times in all competitions.