MRM-Racing
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Customizr] Proper customizationTried this but it did not work 🙁
remove_filter( ‘tc_social_header_block_class’, ‘wpautop’ );
Forum: Themes and Templates
In reply to: [Customizr] Proper customizationOne last question 🙂
I have removed Social block and tagline block from header, so how should I write the filter to do same as remove them from the class?
function tc_social_in_header($resp = null) {
//class added if not resp
$social_header_block_class = apply_filters( ‘tc_social_header_block_class’, ‘span5’, $resp );
$social_header_block_class = (‘resp’ == $resp) ? ”: $social_header_block_class ;$html = sprintf(‘<div class=”social-block %1$s”>%2$s</div>’,
$social_header_block_class,
( 0 != tc__f( ‘__get_option’, ‘tc_social_in_header’) ) ? tc__f( ‘__get_socials’ ) : ” );
echo apply_filters( ‘tc_social_in_header’, $html, $resp ); }How would the code look to remove the hook since it forces menu away…
…and thanks again!
Forum: Themes and Templates
In reply to: [Customizr] Proper customizationAnd it works!
Look into snippets code is the best way to learn, and I am planning more sites with this grate theme!
Only thing I have seen in upgrade is that my site-logo disappeared and text Back Home there instead?
i will look into that tomorrow 🙂
Forum: Themes and Templates
In reply to: [Customizr] Adding icon (pictures) in colophonThanks will look into that, it is just the different hooks I search for. So now I learned another “__colophon” is there a reference guide I have missed 🙂
Forum: Themes and Templates
In reply to: [Customizr] Add the responsive menu?I am sure you have to write in functions.php also.
Sorry I can’n help anymore but why don’t you just style the current menu? It is much easier and you need only to work in your themes child-css.
Forum: Themes and Templates
In reply to: [Customizr] Sticky footer, not "sticky"On thing I noticed is that I have slider fadein/out and each time the picture fades the footer is not visible (or hided under), wonder how to fix that?
Forum: Themes and Templates
In reply to: [Customizr] Sticky footer, not "sticky"Opps just after I posted I added this to the above code and it seemed to work 🙂
#footer {
position: fixed;
bottom: 0px;
}So case closed !
Forum: Themes and Templates
In reply to: [Customizr] center, full sized logoThere are many snippets to this theme;
Forum: Themes and Templates
In reply to: [Customizr] Getting a subscribe to button in menu barFormatted as I want it!
Case closed 🙂
Forum: Themes and Templates
In reply to: [Customizr] Getting a subscribe to button in menu barWell it shows up as it should now, will try to get it some css after the eastern dinner now 🙂
Thank’s
/RobertForum: Themes and Templates
In reply to: [Customizr] Getting a subscribe to button in menu barThank’s for you help so far, i did manage to get it to work with this text just before <header/> code;
<div class=”subscribe”>
<?php echo do_shortcode(‘[mc4wp_form]’); ?>
</div>But it seems not so professional with that, how can I mod the code above to use it in functions? It did work when I used $my_content so but it ended up pushing menu down.
Many thanks for helping me out 🙂
Forum: Themes and Templates
In reply to: [Customizr] Getting a subscribe to button in menu barInstead of this code that insert search form;
add_filter(‘tc_tagline_display’, ‘display_search_box’);
function display_search_box($html){
global $wp_current_filter;
$search_box = get_search_form(false); //don’t echo it
if ( in_array(‘__navbar’, $wp_current_filter) )
// replace tagline in portrait viewport
return ‘<div class=”span7 search-navbar”>’.$search_box.'</div>’;
else
// append searchbox to the tagline in mobile viewport
return str_replace(‘</div>’, $search_box . ‘</div>’, $html);}If I would like to insert this short code : [mc4wp_form]
Any ideas?
Forum: Themes and Templates
In reply to: [Customizr] Getting a subscribe to button in menu barThx, I will see what it leads to 🙂