Applying css in functions.php – WordPress Development Stack Exchange

Question

does anyone know how i can style the content i echo out in functions.php with the style.css, just how i would if it was html instead of php? Or whichever other way i can style it, as long as it works. For simplicities shake, lets take this hook:
function the_function(){
echo ‘

Hello world

‘;
}
add_action( ‘get_sidebar’, ‘the_function’ );
How do i add background colors, move it around the space, and all that, as if its html code? Btw, i m using a child theme if it matters, thanks in advance.

0
Γιώργος Νικολίτσας 5 months 2022-04-02T06:29:45-05:00 0 Answers 0 views 0

Leave an answer

Browse
Browse