Leggero2 theme and plugin ReadMore

Ask questions about FlatPress themes, present your themes, request new themes.
Post Reply
Panther
Posts: 74
Joined: Mon Aug 12, 2019 11:05 pm

Leggero2 theme and plugin ReadMore

Post by Panther » Thu Jul 10, 2025 8:18 pm

I am using on my 2 website the theme Leggero2 and plugin ReadMore (to have a preview of the article, then clicking on ReadMe on the first webpage it is possible to read the complete article. If I add sharing buttons (like addtoany) after [more] the sharing buttons are visibile on every articles present on the firstwebpage. So how is possible to fix this and to see the buttons only after clicking on Readme and entering inside the article.

I have added addtoany only on the footer and it is present in all website....but I'd like to have sharing buttons only after clicking ReadMe.

Thanks

User avatar
fraenkiman
Posts: 368
Joined: Thu Feb 03, 2022 7:25 pm
Location: Berlin, Germany
Contact:

Re: Leggero2 theme and plugin ReadMore

Post by fraenkiman » Fri Jul 11, 2025 5:49 pm

Hello Panther,

you have to edit the template enty-default.tpl.

In about line 18 you insert your webshare buttons:

Code: Select all

				{if !empty($flatpress.params.entry)}
					{* Your webshare buttons *}
				{/if}
Best regards
Frank
:pencil: You are strong in PHP and Java Script? :point_right: Then help us to improve FlatPress. :point_left:

:exploding_head: Looking for ideas, templates, examples and answers to frequently asked questions?
:bulb: You'll find it here.

My :de: FlatPress-Blog: https://frank-web.dedyn.io

Panther
Posts: 74
Joined: Mon Aug 12, 2019 11:05 pm

Re: Leggero2 theme and plugin ReadMore

Post by Panther » Sat Jul 12, 2025 7:52 pm

Perfect.....it is working, thank you very much.

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests