• Hi everybody…

    I’m using basic php functions to acomplish some basic bahaviour of my site. This way: Call the function in content, and create it in functions.php.

    OK. I’m using jQuery to build my own slider. And each slide is an image of selected posts.

    I wanted to make the images responsive. So I give different class names to the slides (slide1,slide2,slide3).

    And later create a function that get the php generated code with all the media queries (img sources: full, large, medium and thumbnail), and build a <style> tag.

    The code actually is working.

    But I want to have my css style tag inside <head>, not in <body> in the line where the function is declared.

    Mainly cause it’s not html valid.

    So… how can I pick a php generated value in a body section, and make it appear inside the head tag?

    I can’t achieve this with functions. Maybe I’m doing something wrong…

    I can’t find any info in forums about this… Someone have an idea? Thnx

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Write inside the head with functions’ is closed to new replies.