Digital experiences for all disciplines
Forum Replies Created
-
-
that seemed to do the trick, thanks very much!
also – how to remove the seconds, really don’t need that for an event countdown
thanks
-tHow would one modify the countdown to add spaces between the words & digits?
so instead of
100DAYS15HOURS27MINUTES15SECONDS as it appears now I could change it to read as:100 DAYS 15 HOURS 27 MINUTES 15 SECONDS
which is much easier to read.
thanks
This reply has been marked as private.This reply has been marked as private.Dante 2.52
This reply has been marked as private.The Contact Form issue that is posted at the top of *this* forum in the stickies by *your* support team. That issue.
?
My main goal is to reduce the file size – esp of the CSS file as to speed up the download time of the site – and the webpage that keeps being referred to by support here to look at for how to do this is 1) old , 2) has some incorrect information and 3) recommends plug-ins that have bad reviews due to crashing people’s sites. So I want to get the download speed increased but I also don’t want to end up having to rebuild the site afterwards.
TAADAAAA! that did it, THANK YOU.
The original code posted was missing the
if ($id == "phone") {
and the additional } to close it out.
So – for everyone out there trying to add other icons to your top nav bar –
1) add the code to shortcodes.php page (get all the code!)
2) add the icon name in the Theme Options/Header Options
and voila!if ($id == "envelope") { $social_icons .= '<li class="envelope"><a href="http://www.yourdomainhere.com/contact-us/"><i class="fa-envelope"></i><i class="fa-envelope"></i></a></li>'."\n"; }
If I JUST add the code into the shortcodes php then I get the new icon repeated after each social icon.
If I add the code in the shortcode.php AND I include “envelope” in the Header option/top bar right like this:
[social size=’small’ style=’light’ type=’twitter,facebook,youtube,flickr,envelope’]
then I get an EXTRA envelope added to the end of the icon string – see attached screen shot.
😉 The trick is – how do I just get it ONE time and as a link? ah HA! (or I should say, the trick is why isn’t this working.)
Obviously I’m missing a step somewhere.
Kimley – Thanks, but just copy&pasting that code exactly just changes my results to having four little phone icons in the header instead of 4 little envelopes 😉 Obviously there is a key here that I’m missing.
Is there more than this single step involved when wanting to add additional icons into the top header bar along side the social media icons?
As I previously posted:
I *only* added the extra code to the shortcodes.php file.
I didn’t touch any other file. I followed the directions you posted above in reply #52736 and added the code to the shortcodes.php page
dante/swift-framwork/shortcodes.php
I’m building this on a test server so I can’t share – I *only* added the extra code to the shortcodes.php file. Attaching a screen shot.
Ok,I have the same question (wanting to add another icon in the social icon header) but I haven’t figured out how to change the code to add just ONE single icon instead of one icon after every social icons
the code that was posted above:
$social_icons .= '<li class="envelope"><a href=".../contact-us/" target="_blank"><i class="fa-envelope"></i><i class="fa-envelope"></i></a></li>'."\n";
returns a page result of *twitter icon* *envelope icon* *facebook icon* *envelope icon* *github icon* *envelope icon* *youtube icon* *envelope icon* *flickr icon* *envelope icon*
instead of the desired look of adding just the ONE icon at the end of the string.
And my mucking about in the shortcodes.php trying to decipher how to change the above code isn’t working.
How do I modify the code to add an additional icon in that row?
thanks -