Jump to content

PHP string in the header(Joomla & K2)


Vasily

Recommended Posts

I'm trying to implement a custom css style for each of the K2 templates.

 

I wrote a com_K2 override.

 

I add this string to a K2 template php files

<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/html/com_k2/templates/default/k2c.css" type="text/css" />

but it adds itself in the body of the page. Is there a way to put this string into <head> tag?

 

I'm not savvy in PHP, so any advice would be appreciated

Link to comment
https://forums.phpfreaks.com/topic/289378-php-string-in-the-headerjoomla-k2/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.