• Hi Michael,
    I need to customize some publication link icons declared (I think) in the ‘class-icons.php’ file.
    Could you please provide the function I should include in my child theme’s ‘functions.php’ file to override them and avoid touching the original PHP file?
    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author winkm89

    (@winkm89)

    Hi,

    Unfortunately, I think it’s actually not possible to overwrite this definition for the link icons. What exactly do you want to change?

    Thread Starter fatbones

    (@fatbones)

    Hi Michael,

    The reason I asked the previous question is because I implemented your plugin within an extremely minimalist website that dispenses with solid elements and icons and uses only thin lines. I reviewed the icons available in FontAwesome 5 and Academicons, focusing primarily on the “Free-Regular” style and specifically the icon for files (e.g., far fa-file-pdf and far fa-file-code).

    In this regard, I’ve also received some updates from other plugin developers, and their updated source code for use within functions.php file in the child theme begins with:

    [code lang="php"]</p> <!-- /wp:paragraph --> <!-- wp:paragraph --> <p>class Awsm_Team_Override extends AWSM_Shortcode_Team_Masonry {</p> <!-- /wp:paragraph --> <!-- wp:paragraph --> <p> protected function do_shortcode( $atts, $content = '' ) {<br /> $query = $this-&gt;get_loop_query();<br /> .<br /> .<br /> .<br /> }<br />}</p> <!-- /wp:paragraph --> <!-- wp:paragraph --> <p>[/code]

    Thread Starter fatbones

    (@fatbones)

    Hi Michael,

    I’ve finally developed a small and working PHP code snippet to customize the publication file type icons directly from the child theme, so no changes will be made to the original teachpress plugin files. You can see the result at https://observatorio-sobre-interseccionalidad.csic.es/publicaciones/

    The only previous step for those who want to achieve these results is to create a custom icon library from fontello.com

    If you’d like me to provide you with these lines of code, please let me know, and I’ll be happy to send them to you privately so you can check them and add them in your next update if you deem it appropriate.

    Affected child theme files: functions.php ; style.css

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

The topic ‘Custom tp_pub_link icons’ is closed to new replies.