Live test site at last
-
My maiden Customizr site has finally made it online – after only 6 months in dev!
I’m feeling emotional and must reiterate my thanks to the people who really created my site, namely: www.ads-software.com, @nikeo, @rdellconsulting, @electricfeet, @acub, @d4z_c0nf and the many other contributors to the Customizr community.
If I have broken or abused your code, I apologise.
-
Wow! Is that smart or what? Worth waiting for.
The page icons: Show fine on Firefox 29.0.1 and Safari 7.03. on a Mac and on iOS 5.1.1 (on an iPad first gen).
Green checkmarks: Show fine on all the above (and the iOS Ipad is the one that normally gives problems on old stuff). However, just picking a unicode character because you like it often results in failure. It’s a general rule of thumb that if you like a unicode character, it will not display on your site ?? (c.f. the rule of thumb that says that the correct way to insert a USB plug is always the opposite of what you try first.)
A better approach would be to use CSS and a Genericons icon, as you know that you have this at your disposal with Customizr installed. You could take the opportunity to do away with all the individual check-mark symbols and all the individual inline styling (to centre the paragraphs, change their colors, font-sizes etc.) … and the spans etc.
What you have here is a list. So you can enter it in your page as:
<ul class="price-page-bullets"> <li>This is text</li> <li>This is more text</li> <li>This is yet more text</li> <li>This is a final line</li> </ul>
Then add the following to your CSS:
/* Take off bullets */ ul.price-page-bullets { list-style: none; } /* Colour the odd-numbered list items */ .price-page-bullets li:nth-child(odd) { color: #5a5a5a; } /* Colour the even-numbered list items */ .price-page-bullets li:nth-child(even) { color: #808080; } /* Add a Genericons check-mark */ .price-page-bullets li:before { color: #8F48E2; content: "\F418"; font-family: "genericons"; font-size: 26px; vertical-align: bottom; } /* Style the text in the price-page bullets */ .price-page-bullets li { font-size: 16px; font-weight: 700; line-height: 200%; text-align: center; }
That will add a genericons check-mark icon in super-pink/purple before the text. It will also do all the other stuff, like bold and centre for your text, without you having to repeat it all over and over in your html, which means that if you decide to change it tomorrow, you only have to change the style once, which is what CSS is all about.
The “else” bit in your code: Simply says “and if Chappie didn’t give me a link for a particular slide, then use the slide link that he originally set when he edited the slider.
Pixel perfectness (coz I know you’re a stickler for it): In your style sheet, you have
.widget-front > h2 { margin-bottom: 0; margin-top: -5px; }
Change the top margin to -3px, otherwise you shave off the top of the B in “Beauty”. And of all the words to shave a couple of pixels off, that is not the one ??
Overall it’s a brilliant site. Well done!
I’ve been nudged by someone off-board ?? to be more precise. In the statement “and if Chappie didn’t give me a link for a particular slide, then use the slide link that he originally set when he edited the slider”, it’s the “then” clause that is equivalent to the “else” bit of your code.
@electricfeet – good morning and thank you! I have just woken up from the best sleep I have had for 6 months.
Thanks for the snippets – which I will embrace as soon as I have finished breakfast. You’re right: I know (just) enough to have worked the
ul
out for myself but I cut a few corners towards the end as I tried to speed up. I love playing with the right code and getting it to work but it can be slow going for learners.Thanks for testing too. I think the Page Icons are universally ok now after fixing an errant localhost link in my CSS. The unicode Green Checkmarks were always likely to need fixing after I discovered that some other unicode experiments caused paragraphs to disappear.
I’ll check out the
.widget-front
margins – I hadn’t noticed the close shave!Thanks for the php explanation. Tbh, I still don’t understand it. Is it saying that the call to action button will revert to the “placeholder” link which @nikeo’s snippet requires before it can overwrite with the anchor link? Otherwise, there is no certainty that I would have set any previous link.
I know all about the USB rule of thumb? – it’s the same rule that makes me buy Apple products 24 hours before they announce a price cut…
Thank you for all your help over the past 6 months. I have learnt a lot. Still very much a novice though!
@electricfeet – just playing with your
ul
CSS snippet in my localhost site and it does everything it says on the tin — except give me the icon.content: “\F418”;
font-family: “genericons”;merely adds the text “F418” in front of every line. I thought I had spotted the problem because the genericons website illustrates singe quotes – but that change gave me neither icon nor “F418” text.
I haven’t downloaded the genericon font: are *all* the glyphs embedded in the theme? But when I substituted a glyph which I know comes with the theme, I got the same result, so that’s not the real problem.
Did you put it in the custom css box or in the child-theme style.css?
Consider that social icons are genericons too.I always use the custom CSS box first and if the boy does good, I promote him from the reserves to the main team. I’m guessing you’re going to tell me he should have gone straight into the main team.
Ok, when you use “\” in the custom css you should escape it with another “\”. Look that, if I’m not wrong, every time you change something in Customize you have to re-add the escaping “\”.
content: "\\F418"; font-family: "genericons";
You were right, d4z_c0nf – when I pasted ElectricFeet’s CSS into the style sheet proper, it all worked.
Thanks for the explanation. But why does the genericon website show the CSS in single quotes, instead of double?
@electricfeet – looks lovely too. Hm…I might play around a bit with some other glyphs.
I’ve changed the
widget-front
margin too so I’ve nearly finished my homework!??
@electricfeet – looks lovely too. Hm…I might play around a bit with some other glyphs
Hm, they presumably aren’t all embedded. I tried substituting the heart (F461) and nothing showed. Surely a French theme would include the heart glyph? Sacre bleu!
Ehehe ??
Yes not all are included. It depends on the genericons version embedded.
Anyway if you’re particular interested in the heart (really?) you can try the entypo:content: "\2665"; /* 2661 for the empty heart */ font-family: "entypo";
you can try the entypo
Thanks d4z_c0nf – I’ll save that for my next site. For this one, I’m running out of steam/time so I’ll stick with F418 and have some lunch.
I’ve reached the conclusion that a website is never “finished”. It just stops improving when the designer runs out of time, patience or money. A bit like great paintings…
Yeah, I always point on the patience to stop ??
Glad it’s working. Sorry I didn’t get back to you. I was finishing my magnum opus on Polylang and Customizr. (And I slept a little better for it ?? )
The genericons font that is included in Customizr is older than the latest, I think. You can see in the Genericons release notes that the heart was included last November. IIRC it’s on the (very loooong) list of things to do.
Thanks ElectricFeet – and glad that you have returned to the fold! Your code works great, natch. Only my lack of knowledge got in its way.
Site owner has been canvassing site reviews from F&F and this was the first critique:
What an incredibly content-rich, interesting and engaging site. ?Seriously impressed. It’s sooo comprehensive. Love the blog, love the glossary in the footer, love the testimonials, love the video and love all the scientific evidence. It’s properly well-built, too! Who did it for you? I’m about to redo mine…
So I have given them your name ?? – and the names of the rest of the boyz.
Gratifying…but apologies for trumpet-blowing.
- The topic ‘Live test site at last’ is closed to new replies.