SVG in Header Logo area

Permalink Browser Info Environment
Hello!

I am trying to insert an svg in the "header logo area".
Image block works fine in this area with jpg, but on the smartphone for some reason C5 takes a smaller thumbnail and blows it up so it's all fuzzy. (At least I think that is what is happening)
So I would like to use svg.
I downloaded Mesuva's svg block from Github, and it works fine in other areas, but not in the header logo area. The logo disappears.
I know this is not a proper support question, but as the developer I was hoping you could recommend a way that I can implement svg in this area? It would look so much better.

Interestingly enough, for fun I inserted an svg as a "picture" in the text section of the header slider on the home page:
http://tanzraum-affoltern.ch/index.php...
It looks great in Firefox - is responsive, etc. (have to test further in other browsers)

Thanks for any input. By the way the theme is very nice - I have had to do minimal customization, and mostly just to work with branding. (fonts, colors)

Type: Pre-Sale
Status: Resolved
arlenesey
View Replies:
corywebb replied on at Permalink Reply
corywebb
Hello, thank you for your kind words about the theme. I'm glad you like it. I would appreciate it if you would write a review if you have time. :)

From the looks of it, it seems like you have the SVG in the wrong area. There are 2 areas in the navbar: "Header Logo" and "Header Navigation". The SVG should go in the "Header Logo" area. Let me know if you have trouble with that, and I'll try to help.

Best of luck, and thanks for buying Motif!

Cory
arlenesey replied on at Permalink Reply
arlenesey
Yes Cory, I did place it in the nav area, just to see how it looks. Of course it looks good, but in the wrong position.
I will add the Mesuva svg block again in the Header Logo area. GIve me 5 minutes - or take a look when you have time.

Of course I will write a review.
corywebb replied on at Permalink Reply
corywebb
Ok, I think I see the problem. A SVG has to have its dimensions defined, and there are no dimensions (width or height) defined for the <img> tag. What you can do is add the following custom CSS:

.ccm-page .navbar-header img.ccm-svg-block {
height: 50px;
width: auto;
}

See if that helps.
arlenesey replied on at Permalink Reply
arlenesey
Thanks Cory -

It is showing on Mac Firefox/ Chrome /Safari and iOS, but not on Windows IE 11. I knew svg is not compatible with IE8, but I guess they still haven't fixed it.
Sadly, the back-up jpg is also not showing. Hmmmm.
Maybe I will purchase the other SVG Block available from "A3020". The blocks from Github are sometimes not up-to-date.
corywebb replied on at Permalink Reply
corywebb
I'm glad you got it working. Too bad about IE. It's such a pain to work with that browser.

concrete5 Environment Information

# concrete5 Version
Core Version - 5.7.5.7
Version Installed - 5.7.5.7
Database Version - 20160412000000

# concrete5 Packages
Automatic Email Obfuscator (2.0.1), Motif (0.9.3), SVG Image (0.9.7).

# concrete5 Overrides
languages/fi_FI/LC_MESSAGES/messages.mo, languages/fi_FI/LC_MESSAGES, languages/fi_FI, languages/el_GR/LC_MESSAGES/messages.mo, languages/el_GR/LC_MESSAGES, languages/el_GR, languages/da_DK/LC_MESSAGES/messages.mo, languages/da_DK/LC_MESSAGES, languages/da_DK, languages/fr_FR/LC_MESSAGES/messages.mo, languages/fr_FR/LC_MESSAGES, languages/fr_FR, languages/tr_TR/LC_MESSAGES/messages.mo, languages/tr_TR/LC_MESSAGES, languages/tr_TR, languages/it_IT/LC_MESSAGES/messages.mo, languages/it_IT/LC_MESSAGES, languages/it_IT, languages/pt_BR/LC_MESSAGES/messages.mo, languages/pt_BR/LC_MESSAGES, languages/pt_BR, languages/cs_CZ/LC_MESSAGES/messages.mo, languages/cs_CZ/LC_MESSAGES, languages/cs_CZ, languages/es_PY/LC_MESSAGES/messages.mo, languages/es_PY/LC_MESSAGES, languages/es_PY, languages/sv_SE/LC_MESSAGES/messages.mo, languages/sv_SE/LC_MESSAGES, languages/sv_SE, languages/fi_FI/LC_MESSAGES/messages.mo, languages/fi_FI/LC_MESSAGES, languages/fi_FI, languages/el_GR/LC_MESSAGES/messages.mo, languages/el_GR/LC_MESSAGES, languages/el_GR, languages/da_DK/LC_MESSAGES/messages.mo, languages/da_DK/LC_MESSAGES, languages/da_DK, languages/fr_FR/LC_MESSAGES/messages.mo, languages/fr_FR/LC_MESSAGES, languages/fr_FR, languages/tr_TR/LC_MESSAGES/messages.mo, languages/tr_TR/LC_MESSAGES, languages/tr_TR, languages/it_IT/LC_MESSAGES/messages.mo, languages/it_IT/LC_MESSAGES, languages/it_IT, languages/pt_BR/LC_MESSAGES/messages.mo, languages/pt_BR/LC_MESSAGES, languages/pt_BR, languages/cs_CZ/LC_MESSAGES/messages.mo, languages/cs_CZ/LC_MESSAGES, languages/cs_CZ, languages/es_PY/LC_MESSAGES/messages.mo, languages/es_PY/LC_MESSAGES, languages/es_PY, languages/sv_SE/LC_MESSAGES/messages.mo, languages/sv_SE/LC_MESSAGES, languages/sv_SE

# concrete5 Cache Settings
Block Cache - On
Overrides Cache - On
Full Page Caching - Off
Full Page Cache Lifetime - Every 6 hours (default setting).

# Server Software
Apache

# Server API
cgi-fcgi

# PHP Version
5.6.21

# PHP Extensions
bcmath, bz2, calendar, cgi-fcgi, Core, ctype, curl, date, dba, dom, ereg, exif, fileinfo, filter, ftp, gd, gettext, hash, iconv, imagick, imap, intl, ionCube Loader, json, libxml, mbstring, mcrypt, mhash, mysql, mysqli, mysqlnd, odbc, openssl, pcntl, pcre, PDO, pdo_mysql, PDO_ODBC, pdo_sqlite, Phar, posix, pspell, readline, Reflection, session, shmop, SimpleXML, soap, sockets, SPL, sqlite3, standard, sysvmsg, sysvsem, sysvshm, tokenizer, wddx, xml, xmlreader, xmlrpc, xmlwriter, xsl, Zend Guard Loader, Zend OPcache, zip, zlib.

# PHP Settings
max_execution_time - 60
log_errors_max_len - 1024
max_file_uploads - 100
max_input_nesting_level - 64
max_input_time - 60
max_input_vars - 20000
memory_limit - 256M
post_max_size - 256M
sql.safe_mode - Off
upload_max_filesize - 256M
mysql.max_links - Unlimited
mysql.max_persistent - Unlimited
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
odbc.max_links - Unlimited
odbc.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
session.cache_limiter - <i>no value</i>
session.gc_maxlifetime - 7200
soap.wsdl_cache_limit - 5
opcache.max_accelerated_files - 4000
opcache.max_file_size - 0
opcache.max_wasted_percentage - 5

Browser User-Agent String

Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:46.0) Gecko/20100101 Firefox/46.0

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You may not request a refund that is not currently owned by you.