new to Ruby - inserting un-clickable images into footer

24 views
Skip to first unread message

Carl Hammill

unread,
Jul 25, 2014, 5:23:56 AM7/25/14
to rubyonra...@googlegroups.com
Hello,
Looking to add accreditation icons in footer (below social media
icons).

Last line of social media icon looks like this:

{% if settings.show_wordpress %} <a href="{{ settings.wordpress_url }}"
target="_blank"><img src="{{ 'Wordpress.jpg' | asset_url }}"
width="32px"></a>{% endif %}
</ul>

Just looking to insert non-clickable images (actually three of them)
after that line. I have added the three images as new assets (this is
shopify theme).

Thanks in advance
Carl

--
Posted via http://www.ruby-forum.com/.

Scott Ribe

unread,
Jul 25, 2014, 9:23:11 AM7/25/14
to rubyonra...@googlegroups.com, Carl Hammill
On Jul 25, 2014, at 3:23 AM, Carl Hammill <li...@ruby-forum.com> wrote:

> Just looking to insert non-clickable images (actually three of them)
> after that line. I have added the three images as new assets (this is
> shopify theme).

Well, if you don't want it to be clickable, then don't make it an anchor, IOW don't wrap it in <a></>. That's pretty basic HTML, not really a Ruby on Rails question. Which is good, since your snippet doesn't seem to be embedded Ruby at all. Are you sure you came to the right place to ask this???

--
Scott Ribe
scott...@elevated-dev.com
http://www.elevated-dev.com/
(303) 722-0567 voice




Hassan Schroeder

unread,
Jul 25, 2014, 9:55:50 AM7/25/14
to rubyonrails-talk
On Fri, Jul 25, 2014 at 6:23 AM, Scott Ribe <scott...@elevated-dev.com> wrote:

> That's pretty basic HTML, not really a Ruby on Rails question.

+1

> Which is good, since your snippet doesn't seem to be embedded Ruby at all.

Actually, it's the Liquid templating language used by Shopify --
<http://docs.shopify.com/themes/liquid-documentation/basics>

FWIW,
--
Hassan Schroeder ------------------------ hassan.s...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

Scott Ribe

unread,
Jul 25, 2014, 10:15:59 AM7/25/14
to rubyonra...@googlegroups.com, Hassan Schroeder
On Jul 25, 2014, at 7:55 AM, Hassan Schroeder <hassan.s...@gmail.com> wrote:

> Actually, it's the Liquid templating language used by Shopify --
> <http://docs.shopify.com/themes/liquid-documentation/basics>

Ah, thanks. I tried googling everything I could think of regarding alternatives for embedded Ruby, and came up empty. It's still not RoR at all, is it?
Reply all
Reply to author
Forward
0 new messages