User Tools

Site Tools


doc:tips:webshareapi

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
doc:tips:webshareapi [2022/08/19 13:34] – [How to integrate with Flatpress] fraenkimandoc:tips:webshareapi [2022/08/19 14:32] (current) – [How to integrate with Flatpress] fraenkiman
Line 10: Line 10:
 ==== How to integrate with Flatpress ==== ==== How to integrate with Flatpress ====
  
-First find and edit the file [[https://github.com/flatpressblog/flatpress/blob/master/fp-interface/themes/leggero/static.tpl|fp-interface/themes/YOUR THEME/static.tpl]] and find this line 14 +First find and edit the file [[https://github.com/flatpressblog/flatpress/blob/master/fp-interface/themes/leggero/static.tpl|fp-interface/themes/YOUR THEME/static.tpl]] and find this line 12 
-''{/static}''+''{$content|tag:the_content}''
  
  
Line 23: Line 23:
 To add webshare API to all your posts your must edit the file [[https://github.com/flatpressblog/flatpress/blob/master/fp-interface/themes/leggero/entry-default.tpl|/fp-interface/themes/YOUR THEME/entry-default.tpl]]. To add webshare API to all your posts your must edit the file [[https://github.com/flatpressblog/flatpress/blob/master/fp-interface/themes/leggero/entry-default.tpl|/fp-interface/themes/YOUR THEME/entry-default.tpl]].
  
-Paste the following code above the last ''</div>'' and then save the file back to your server.+Paste the following code above the last ''</div>'' (Line 40) and then save the file back to your server.
 <code html> <code html>
 <input type="button" value="Share this entry" class="the-share-button" onclick="shareTheLink()" /> <input type="button" value="Share this entry" class="the-share-button" onclick="shareTheLink()" />
doc/tips/webshareapi.txt · Last modified: 2022/08/19 14:32 by fraenkiman

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki