Keyword

extra field css icon

  • Klaus Fuchs
  • Klaus Fuchs's Avatar Topic Author
  • Offline
  • New Member
More
7 years 4 months ago #162876 by Klaus Fuchs
extra field css icon was created by Klaus Fuchs
Hi
this forum is awesome!
thanks for helping me!

Now, after I managed to display my extrafields at the right position
Result = here: blank.fuchs-net.de/index.php/sm.html

Now I need some tips with my lionks under the fulltext:
I have this 3 Links:
www I fb | Instagram
I added an icon to every link via classes.
So far ok.
But I would like to have only the icon as a clickable Link.
I know - maybe not a K2 topic, but maybe someone has an idea how?!
Here is the snippet of the three exgtrafield links:
thanks so much for all of ur support!
<?php foreach ($this->item->extra_fields as $key=>$extraField): ?>
	
		<?php if(($extraField->name == 'webseite') &&( $extraField->value != '')): ?>
			<i class="fa fa-external-link fa-2x" aria-hidden="true"><span class="itemExtraFieldsValue webseite "></i><?php echo $extraField->value; ?></span><?php endif;?>
			
	
		<?php if(($extraField->name == 'facebook') &&( $extraField->value != '')): ?>
			<i class="fa fa-facebook fa-2x" aria-hidden="true"><span class="itemExtraFieldsValue facebook"></i><?php echo $extraField->value; ?></span><?php endif;?>
			
		<?php if(($extraField->name == 'instagram') &&( $extraField->value != '')): ?>
			<i class="fa fa-instagram fa-2x" aria-hidden="true"><span class="itemExtraFieldsValue instagram"></i><?php echo $extraField->value; ?></span><?php endif;?> 					
	
	<?php endforeach; ?>

You will never hear these phrases from us:
We can't do that | I don't know what that is | I did everything on my own | That's too early | That's too late | It's too bad we couldn't work together | Let's catch up sometime | I'm sorry, I'm too busy | That was all my idea | If our competitors don't hav

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
7 years 4 months ago #162885 by Krikor Boghossian
Replied by Krikor Boghossian on topic extra field css icon
Are these fields text fields or links?
If there are links, then the entire <a> element will be returned when you only need the link. I would suggest that you use text fields instead and construct the <a> element yourself.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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


Powered by Kunena Forum