• Resolved Sherry22

    (@sherry22)


    I have a gantry theme and am attempting to put [print-link] so that the icon will show up beside all h2 headings. The text only shows. What php code do I need to put here?
    It is a .twig file type

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Lester Chan

    (@gamerz)

    Shortcode only allows you to use text or the predefined icon in the settings.

    If you want to use your own icon you need to do it in your theme itself which is out of my support scope.

    For a start, you can do something like in your theme loop.

    
    <img src=""><a href="<?php the_permalink(); ?>print">Print This Page</a>
    
    Gantry

    (@gantry)

    Gantry dev here. If it’s a Twig file you need to replace <?php the_permalink(); ?> from the code above with {{ post.link }}.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Print icon on all pages’ is closed to new replies.