VISIT AND LIKE OUR PAGE ON FACEBOOK
TAKE A LOOK AT OUR TWEETS ON TWITTER
SUBSCRIBE TO THE JOOMFREAK RSS FEED
VISIT OUR CHANNEL ON YOUTUBE

Account Details

Change your name, email, password or permanently delete your account. Change settings

We offer several ways you can get support from our experts: Support ForumKnowledgebaseNewsletter

Your Forum Posts

No posts to display.

Welcome, Guest
Username Password: Remember me
  • Page:
  • 1

TOPIC: add social icon

add social icon 27 Mar 2015 22:08 #6446

Hi, i would add another social icon.
I have modified these files:

I added the new code for the icon youtube in template.css
#jf-social li a.button-youtube {
background-image: url(../images/youtube.png);
}

Also I added the code in index.php
<?php if ($templateparams->get('youtubeicon') && $templateparams->get('youtubelink') != '') : ?>
<li><a class="button-youtube" href="<?php echo $templateparams->get('youtubelink'); ?>" target="_blank"></a></li>
<?php endif; ?>

and also the code in templateDetails.xml
<field name="youtubeicon" type="radio" default="1"
label="Show Youtube Icon"
description="Select an option">
<option value="0">No</option>
<option value="1">Yes</option>
</field>

<field name="youtubelink" type="text" default="#"
label="Youtube Link"
description="Please add your youtube link here"
filter="string" />

but the icon does not appear.
What other files I have to change?

  • Posts:9
  • markews
  • Fresh Boarder
  • OFFLINE
  • Karma: 0

Re: add social icon 27 Mar 2015 23:37 #6447

add to css approximately 249 line code:

example:

#jf-social li a.button-youtube {
background-image: url(../images/youtube.jpg);
}

  • Posts:3
  • giobor
  • Fresh Boarder
  • OFFLINE
  • Karma: 0

Re: add social icon 28 Mar 2015 07:39 #6448

Perhaps you have not read, but it is the first thing I did ...

  • Posts:9
  • markews
  • Fresh Boarder
  • OFFLINE
  • Karma: 0
  • Page:
  • 1
Time to create page: 0.57 seconds
Friday 19 April 2024

joomfreak is not affiliated with or endorsed by the Joomla Project or Open Source Matters.
The Joomla logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.