georgedumontier
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Customizr] Change footer container classSo I checked the preview of the theme here https://www.ads-software.com/themes/customizr/
It’s the same on the example theme. <footer id=”footer” class>
Haha *face palm*
Thanks anyway Menaka, You’re seriously a champion of this theme forum.
P.S. does anybody know if this is even a real problem? It doesn’t seem to throw an error when validating the markup.
Forum: Themes and Templates
In reply to: [Customizr] Change footer container classIt’s
<footer id="footer" class>
It doesn’t seem to be affecting the site, but it’s not very pretty. May not pass validation either.
I think it must be something I’m doing wrong with tc_colophon_filter
Forum: Themes and Templates
In reply to: [Customizr] Change footer container classyep, I’m sure I’m doing something wrong
add_filter('tc_colophon_display','pec_change_footer_html'); function pec_change_footer_html($content){ $content =' <div class="container-fluid"> <div class="row-fluid"> <div class="span4"><p class="pec-footer-title">Precision Eye Care</p></div> <div class="span4 pec-footer-left"> <p>Call for an appointment</p> <p>573-756-2020</p><p>Office Hours</p><p>Monday - Friday 9:00 - 5:00</p></div> <div class="span4 pec-footer-right"> <a href="https://www.google.com/maps/place/Precision+Eye+Care+Inc/@37.7755865,-90.4426714,16z/data=!4m2!3m1!1s0x87d8457aca6b1079:0xd1edcb4e28fa5776" target="_blank"> <p><strong>Find us on Google Maps</strong></p><address>Precision Eye Care<br>140 Westmount Drive <br>Farmington, MO</address></a></div> </div> </div> '; return $content; }
There’s also an html tag for this.
<a href="tel:1-408-555-5555">1-408-555-5555</a>
Might be useful if you want to make the link words instead of numbers.
Here’s a little blog post on it.
https://css-tricks.com/snippets/html/iphone-calling-and-texting-links/
Forum: Themes and Templates
In reply to: [Customizr] Change footer container classWell the filter allowed me to put all my HTML in the right spot, but now my footer has a weird empty class attribute.
It’s <footer id=”footer” class>
Can i get rid of that ugly class?
Forum: Themes and Templates
In reply to: [Customizr] Change footer container classYou’re a champion Menaka. I can get everything I need done with tc_colophon_display.
Thanks!
Forum: Themes and Templates
In reply to: [Customizr] Change title div from span3 to span8Thanks again Menaka,
I forgot to mark this as resolved.
Forum: Themes and Templates
In reply to: [Customizr] Change title div from span3 to span8Hi Menaka, thanks for the reply!
The code works perfectly. I’m just afraid I don’t totally understand it. I’m kind of new to filters.
I believe we’re hooking into the tc_logo_class filter hook and adding our own function (pmnm_logo_class) What are the 11 and 2? priority?
I think the if statement looks through an array to find the key associated with ‘span3’. Then we use $key to replace span3 with span8 with $content[$key].
$content is the name of the array. is $content a variable we named ourselves or a variable from the theme?
Sorry if this is outside the scope of this thread. I’m still following some tutorials for filters.
Thanks again!