Support » Plugin: Indicate External Links » Very Useful Plugin But Too Hardcoded

  • I tested the plugin and it does exactly what it promises. It is useful plugin and thanks to authors for sharing it with the community.

    I had this little problem though, the plugin adds JavaScript and CSS into WordPress header wp_head which makes it difficult to override in the theme’s stylesheet.

    It would be nice to have them properly enqueued so that users can override them in their theme’s stylesheet if they want.

    Thanks

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

    (@numeeja)

    Thank you for your review. This was not an oversight, but after considering the options my opinion was that this would be the most appropriate way to build this plugin.

    All the plugin does is to add a tiny amount of css and a tiny amount of javascript, so I didn’t think there was any benefit in including these as separate files.

    As there is nothing else in the plugin installing it then replacing the css & js files with custom versions would be like having a broom with both the handle and the head replaced. If you need a customised version it would make more sense to me to deactivate the plugin and copy the ‘add script’ & ‘add css’ sections (also the ‘enqueue jQuery’ section if it is not already needed on your site) to a child theme’s functions.php or a custom ‘functionality’ plugin and make any desired changes there.

    Thanks, I understand completely why you would want to add CSS and JS into wp_head, and I think you are right.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Very Useful Plugin But Too Hardcoded’ is closed to new replies.