Your Cart is currently empty!
Product update
Coupon
add
Coupon code invalid! Please re-enter!
AJAX loader
You are here: HomeForum
Welcome, Guest

Change "Links count" ordering with image and title
(1 viewing) (1) Guest

TOPIC: Change "Links count" ordering with image and title

Change "Links count" ordering with image and title 10 years, 12 months ago #9464

Hi SmartAddons,

One question about changing K2 Links count in Category. I wont first image and then title because some titles are to short and other to long?

Here is example:

Attachment change.png not found

The topic has been locked.

Re: Change "Links count" ordering with image and title 10 years, 12 months ago #9468

and One more:

How to put "Read more" floating right not left in K2 offc.

thank you
The topic has been locked.

Re: Change "Links count" ordering with image and title 10 years, 12 months ago #9483

  • SA Thuy
Dear marc trimble,

Please send your url of page that you want to change "Links count"? and screenshot of 'Read more' button.

Thanks
The topic has been locked.

Re: Change "Links count" ordering with image and title 10 years, 11 months ago #9540

Its about K2 category. Site is Offline but just for modifing for you is on.

Read More aka Više... is on the same site.

thank u
The topic has been locked.

Re: Change "Links count" ordering with image and title 10 years, 11 months ago #9552

  • SA Thuy
Dear marc trimble,

If in your K2 Category manager, you choose 'yt-theme' in 'Select a template' field, please go to file category_item_links.php in yoursite/templates/sj_worldnews/html/com_k2/templates/yt-theme.
If in your K2 Category manager, you choose '-- Use default --' in 'Select a template' field, please go to category_item_links.php in yoursite/components/com_k2/templates/default.

Please cut the code:
 <!-- Item title -->
	  <h3 class="catItemTitle">
	  	<?php if ($this->item->params->get('catItemTitleLinked')): ?>
			<a href="<?php echo $this->item->link; ?>">
	  		<?php echo $this->item->title; ?>
	  	</a>
	  	<?php else: ?>
	  	<?php echo $this->item->title; ?>
	  	<?php endif; ?>
	  </h3>

And paste it after the code:
<?php if($this->item->params->get('catItemImage') && !empty($this->item->image)): ?>
	  <!-- Item Image -->
	  <div class="catItemImageBlock">
		  <span class="catItemImage">
		    <a href="<?php echo $this->item->link; ?>" title="<?php if(!empty($this->item->image_caption)) echo K2HelperUtilities::cleanHtml($this->item->image_caption); else echo K2HelperUtilities::cleanHtml($this->item->title); ?>">
		    	<img src="<?php echo $this->item->image; ?>" alt="<?php if(!empty($this->item->image_caption)) echo K2HelperUtilities::cleanHtml($this->item->image_caption); else echo K2HelperUtilities::cleanHtml($this->item->title); ?>" style="width:<?php echo $this->item->imageWidth; ?>px; height:auto;" />
		    </a>
		  </span>
		  <div class="clr"></div>
	  </div>
	  <?php endif; ?>


About the "Read more" button:
Please open k2.css file (yoursite/components/com_k2/css/k2.css) and find:
div.catItemReadMore {
    display: inline;
}

=>
div.catItemReadMore {
    display: inline;
    float: right;
}


Thanks
The topic has been locked.

Re: Change "Links count" ordering with image and title 10 years, 11 months ago #9622

thank you,

can you help me to add some position in a template.

MY client like to have more advertisement on site so i need new position (like "user4") but after Main Content and with a full width like user4 position. I know that is possible but please help me do add this.

or other solution for this problem that maybe better is. How to add 3 column in this new position. maybe its better for advertise.

| This is one column full width is 980px i think |

to >>

| 1. column | 2. column | 3. column |

thank you man
The topic has been locked.
Time to create page: 0.30 seconds

Notification

Please find your issue via Suggested Posts before submitting your question. We have solved the most of issues and maybe your issue was solved before.

Latest My Topics

No posts to display.

Love all our templates?

Join our membership clubs starting at $49 only for access to all of our templates

Join Now
Home Pricing
Your Cart is currently empty!
Product update
Coupon
add
Coupon code invalid! Please re-enter!
AJAX loader
SearchSupport
Magento Themes Magento Extensions Free Magento Extensions Prestashop Themes Prestashop Modules Magento 2 Themes