SMFHacks.com

Awesome Post Ratings => Support => Topic started by: PapaFrizArcade on April 02, 2022, 02:48:12 pm

Title: CSS Question
Post by: PapaFrizArcade on April 02, 2022, 02:48:12 pm
I've posted this over on SMF site so I might get the answer there first... but I figured I'd ask here too as it has to do with this mod...

I've done some CSS work and some HTML tweaks to this mod.  The HTML tweaks are easy enough to implement in to the mod so that when I uninstall/reinstall my tweaks are included... but i am not 100% sure how to implement the CSS.

Currently I have the CSS at the bottom of the index.css for each theme.  How would I either...

(A) Inject this CSS in to the index.css of each theme (or give the option for each theme)

or

(B) Include a css stylesheet ... I'm pretty sure how to load the stylesheet in to the default themes css folder,  but I don't know how to actuall CALL that stylesheet so that the css is implemented.


In any case... here is my latest CSS tweak...

[attachimg=1]
Title: Re: CSS Question
Post by: SMFHacks on April 03, 2022, 11:23:12 pm
A. you can edit each themes file index.css

B. you can save as an external css style or include the code in
Sources/AwesomePostRatingsHooks.php
In function awesomepost_load_theme()