Support Offline : Mon - Fri / 10am - 6pm (GMT +6)

Your Time: Our Time:

Icon inside a Block/Button

Featured Lock Resolved Issue
Hi,

Just want to know how to set an Icon from the list inside a Block or a Button as the one you have in the homepage (see attached picture). I tried the following code but it did not work:

[block type="rounded" color="#FFF" background="#88903f"]

[icon name="icon-cog" size="40"] Title [/icon]

Content inside the block

[/block]

Appreciate your help
-oscar

Attachments (1)

  • helix.PNG
    helix.PNG 20.9 KB

8 Answers

Jakir hasan - Staff

More than a month ago #Permalink
Hi Oscar,
Folder name should be "shortcodes" . Please rename "shortcodes" instead of "shortcode"

Hope it works......

Thanks

Ehsan Riyadh

More than a month ago #Permalink
I attached the html and use module class suffix highlighted

Attachments (1)

  • index.zip 0.6 KB

Admin Atai

More than a month ago #Permalink
Thanks for your reply, Ehsan!

The code for the Icon inside the button works. I would like to have an Icon inside a block too. I tried the following code for that but it is not working:

[block type="rounded" color="#FFF" background="#88903f"][icon name="download-alt" size="64" color="#fff" /] Download Now[/block]

Could you please let me know what is wrong with this code?

Ehsan Riyadh

More than a month ago #Permalink
It not worked on existing shortcode. You just to override it.

Create a folder name shortcode on templates\shaper_helix_ii and paste the typography.php file.

Now it will work :

[block type="rounded" color="#FFF" background="#000000"][icon name="icon-cog" /]Lorem ipsum dolor[/block]

Attachments (1)

  • typography.zip 0.9 KB

Admin Atai

More than a month ago #Permalink
Hi Ehsan,

I copied the file as you said (.../templates/shaper_helix_ii/shortcode/typography.php) and it is not working...

Using the code you posted: [block type="rounded" color="#FFF" background="#000000"][icon name="icon-cog" /]Lorem ipsum dolor[/block]

This is what I see.

Hope you can help me. Thanks in advance

Attachments (1)

  • icon_block_code.PNG
    icon_block_code.PNG 2.4 KB

Admin Atai

More than a month ago #Permalink
Thanks, Ehsan, for your help.

It is perfectly working now.

Jakir hasan - Staff

More than a month ago #Permalink
Hi Oscar,
You are always welcome

Thanks


There are no replies made for this post yet.
Be one of the first to reply to this post!

Leaderboard (30 days)

Paul Frankowski

Paul Frankowski

Total Accepted Answers: 107
Toufiq

Toufiq

Total Accepted Answers: 66
Sifat

Sifat

Total Accepted Answers: 47
Mehtaz Afsana Borsha

Mehtaz Afsana Borsha

Total Accepted Answers: 21
Rashida Rahman

Rashida Rahman

Total Accepted Answers: 17

118

Templates

305705

Community Users

Newsletter

Don’t miss any updates of our new templates and extensions and all the astonishing offers we bring for you.
We never spam

Joomla! ® name is used under a limited license from Open Source Matters in the United States and other countries. JoomShaper.com is not affiliated with or endorsed by Open Source Matters or the Joomla! Project.

Connect Us