Keyword

item/article title style

  • Randall A.
  • Randall A.'s Avatar Topic Author
  • Offline
  • Junior Member
More
12 years 11 months ago #57072 by Randall A.
item/article title style was created by Randall A.
Hi,
I use joomla 1.7.1..
I want to use K2 (new 2.5) with RocketTheme Radiance template, but I want the article/item's title to have the color block hilite...
I'm attaching 2 images to better explain my issue:

a- the default joomla:
b- what I get with K2:

Can someone give me an idea how to achieve this?
I'd appreciate any help..
Randall A.
Attachments:

Please Log in or Create an account to join the conversation.

More
12 years 11 months ago #57073 by william white
Replied by william white on topic Re: item/article title style
This will be a css issue, please post links to the page if available so people here can use firebug

Please Log in or Create an account to join the conversation.

  • Randall A.
  • Randall A.'s Avatar Topic Author
  • Offline
  • Junior Member
More
12 years 11 months ago #57074 by Randall A.
Replied by Randall A. on topic Re: item/article title style
Thanks for replyig William,

The site is under development but here are links:

a- original joomla style:
www.perfilescr.com/rt/index.php/features/joomla-article

b- k2 style:
www.perfilescr.com/rt/index.php/features/k2-fut

Thanks again...

Please Log in or Create an account to join the conversation.

More
12 years 11 months ago #57075 by Jiliko.net
Replied by Jiliko.net on topic Re: item/article title style
Hi,

2 solutions :

- Edit the K2 item template to update the title code and place the one used in Joomla! articles and so you don't have to change your K2 css

- Edit your K2 css to set the K2 item title style with the one from Joomla! articles.

In your case, the best would be the first one cause there are many divs needed.

So, in your 'item.php' template file, instead of :
<h2 class="itemTitle">
	  	<?php echo $this->item->title; ?>

	  	<?php if($this->item->params->get('itemFeaturedNotice') && $this->item->featured): ?>
	  	<!-- Featured flag -->
	  	<span>
		  	<sup>
		  		<?php echo JText::_('K2_FEATURED'); ?>
		  	</sup>
	  	</span>
	  	<?php endif; ?>

	  </h2>

You would have :
<div class="module-title">
	<div class="module-title2">
		<div class="module-title3">
			<h2 class="title">
				<?php echo $this->item->title; ?>

	  			<?php if($this->item->params->get('itemFeaturedNotice') && $this->item->featured): ?>
	 	 		<!-- Featured flag -->
	 	 		<span>
				  	<sup>
				  		<?php echo JText::_('K2_FEATURED'); ?>
				  	</sup>
		  		</span>
		  		<?php endif; ?>
			</h2>
		</div>
	</div>
</div>

Olivier

Please Log in or Create an account to join the conversation.

  • Randall A.
  • Randall A.'s Avatar Topic Author
  • Offline
  • Junior Member
More
12 years 11 months ago #57076 by Randall A.
Replied by Randall A. on topic Re: item/article title style
Olivier,

Thanks a lot...
I duplicated the k2 item template, brought it over to my joomla template as a custom html, and replaced the code as you instructed..
Now I just select "My_k2" template in k2 categories...

I really appreciate your help...
Keep up the good work guys !!

Randall A.

Please Log in or Create an account to join the conversation.

More
12 years 11 months ago #57077 by benbogart
Replied by benbogart on topic Re: item/article title style
Also very helpful for me. Thanks!

Please Log in or Create an account to join the conversation.

More
12 years 11 months ago - 12 years 11 months ago #57078 by benbogart
Replied by benbogart on topic Re: item/article title style
For the spans to get injected for the dual color title in Radiance you'll need to remove the whitespace between the header tag and the beginning of the php block that outputs the title. For example
<div class="module-title">
     <div class="module-title2">
               <div class="module-title3">
                       <h2 class="title"><?php echo $this->item->title; ?>
 
                              <?php if($this->item->params->get('itemFeaturedNotice') && $this->item->featured): ?>
                            <!-- Featured flag -->
                              <span>
                                      <sup>
                                               <?php echo JText::_('K2_FEATURED'); ?>
                                        </sup>
                              </span>
                             <?php endif; ?>
                   </h2>
               </div>
      </div>
</div>

Please Log in or Create an account to join the conversation.

  • Randall A.
  • Randall A.'s Avatar Topic Author
  • Offline
  • Junior Member
More
12 years 11 months ago #57079 by Randall A.
Replied by Randall A. on topic Re: item/article title style
Thanks to you too, Benjamin...

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum