Leapmkt12
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Customizr] Customizr NavbarHi Guys,
Thank for all the info above. I have installed the snippet & am using Firebug so hopefully I’ll get the navbar where I want it. So it sits just above the slider like these to sites:
https://www.jeanneesti.com/
https://www.safeertravels.com/
(Then I can move it on another clients site to the very top of the page)@electric Feet I’ve added the php below for the menus I need, but I have missed something somewhere, as the page is fine until I add the Hooks & the Display Functions? Any suggestions? The menus are registered with WP as they are now showing in the Manage Locations.
`// Additional menus
add_action( ‘init’, ‘register_extra_menus’ );
function register_extra_menus() {
if ( function_exists( ‘register_nav_menus’ ) ) {
register_nav_menus( array(
‘solar_menu’ => ‘Solar Menu’,
‘aircon_menu’ => ‘Aircon Menu’,
‘electrical_menu’ => ‘Electrical Menu’,
‘lighting_menu’ => ‘Lighting Menu’,
‘energy_menu’ => ‘Energy Menu’
) );
}
}// Hook display functions for each of them on theme elements:
add_action(‘__before_header’, ‘display_solar_menu’);
add_action(‘__before_header’, ‘display_aircon_menu’);
add_action(‘__before_header’, ‘display_electrical_menu’);
add_action(‘__before_header’, ‘display_lighting_menu’);
add_action(‘__before_header’, ‘display_energy_menu’);// Display functions:
function display_solar_menu() {
echo ( has_nav_menu( ‘solar_menu’ ) ? wp_nav_menu (
if ( is_page( array(
‘Solar Power’, ‘Commercial Solar Power Systems’, ‘Solar Schools’, ‘Testimonials’,
‘Solar Hot Water’, ‘Solar Rebates & Incentives’, ‘Stand Alone Solar Power’, ‘The Solar Power Installation Process’, ‘Grid Connect Solar Power’, ‘SAE Group Solar Products’, ‘Our Solar Panels’, ‘Luxen Solar Panels’, ‘Renasola Solar Panels’, ‘Seraphim Solar Panels’, ‘WINAICO Solar Panels’, ‘Our Solar Inverters’, ‘Solar Maintenance’, ‘Maintenance Booking Form’
)
).'<div class=”clearall”></div>’ : ” );
}Forum: Themes and Templates
In reply to: [Customizr] Customizr NavbarWow thanks guys! Unfortunately it didn’t work & just removed the tagline but thats ok this will go on my ‘to be sorted’ list. I really appreciate the feedback & help. As soon as I get it right I’ll let you know.
Forum: Themes and Templates
In reply to: [Customizr] Customizr NavbarPossibly a plugin this is a site I have taken over and moved over to Customizr so it is an ongoing work in progress. But then that would explain why the fantastic snippets you guys have put together don’t always work on this one. Appreciate you, ElectricFeet & Nico taking the time out to even look at it.
Forum: Themes and Templates
In reply to: [Customizr] Customizr NavbarThanks rdell am I correct in that it has something to do with the following classes / id’s?
<div class=”responsiveSelectContainer”>
<ul id=”menu-main_menu-1″ class=”nav tc-hover-menu responsiveSelectFullMenu”>
I am trying to learn php in between everything … oh for another 12 hours in a given day ??Forum: Themes and Templates
In reply to: [Customizr] Customizr NavbarThanks rdell the link is https://saegroup.com.au/
I’ll be adding additional menu’s inside the site purely to simplify the home page nav menu & due to the amount of content on here, but I need to get the ‘look’ on the home page right first.Forum: Themes and Templates
In reply to: [Customizr] Customizr NavbarHI ElectricFeet, I’ve gone through everything in Firefox & inspect element in Chrome, Firefox & IE and I can’t seem to get the right code for this. I’ve implementedeveryting, worked backwards, gone through the PHP Hooks in the Forum & can’t seem to get it right. The effect I need is the same as these two sites (but with my styling):
https://www.jeanneesti.com/
https://www.safeertravels.com/Where the menu is centered above the slider. I’ve tried the php snippets, css and cannot get the ‘id=”menu-main_menu-1″‘class=”nav tc-hover-menu responsiveSelectFullMenu”‘ centered across the top & out of the ‘div class=”navbar notresp row-fluid pull-left”?
Help??Forum: Themes and Templates
In reply to: [Customizr] Customizr NavbarSorry should’ve mentioned that adding the css only pushed the menu up under the Tagline next to ‘Tap to call’ button in two lines. So the Nav-bar is still part of the nav-wrapper. I know its been done as I’ve seen other customizr sites here on the forum with their menu’s below everything and spread out centred above the slider, I just can’t figure out how to do it. Thanks again.
Forum: Themes and Templates
In reply to: [Customizr] Customizr NavbarHahaha, read the first reply in my email & thought ok, someone is working late ?? As always ElectricFeet you are a legend!
Ok looked at the php code (this is where I started & the nav-nar menu is still part of the Navbar wrapper)
// NAVBAR WRAPPER // – I need to take id=menu-main_menu-1 class=nav tc-hover-menu responsiveSelectFullMenu out of this & centre it
// LOGO // – Need it to stay where it is
// TAGLINE // – Need it to stay where it is
// SOCIAL ICONS // – Need it to stay where it is as I have also added an additional tap to call buttonSO looking at the centering php from the rest of the Header I need to do the following??
‘// center the Nav Bar Menu ONLY //
add_filter(‘navbar_notresp_row-fluid_class’, ‘navbar_inner_class’);
function navbar_inner_class() {
return ‘span12’;
}’
The site is saegroup.com.au – ok tried that, didn’t work. What am I missing?Forum: Themes and Templates
In reply to: [Customizr] add-content-above-featured-pagesOnce again Electric Feet you are a legend!! Thank you so much It is all working fantastic & I have a happy customer. Thanks
HI guys, have just updated to Featured Pages Unlimited & now the blog has disappeared?? https://saegroup.com.au/about-us/sae-group-news/
Help!! I’ve gone through all the codes & I can’t seem to get it right. It was working beautifully!You are a legend! Worked beautifully. To be honest I quite like the FP effect on the images in the blog list. Like most of the others here I look forward to the day I can look at this code & actually understand exactly what is happening. Really appreciate the support & this ongoing conversation has actually explained some of the php ?? Thanks again!
Cool thanks – its a bit painful trying to work across black solar panel cells ?? YES!!!!! Just updated to 3.1.15 & I can see what I’m doing! Thanks d4z.
Hey acub! The pastebin is https://pastebin.com/7aE6ZRP0 between you ElectricFeet & rdellconsulting I’ll be php ‘fundi’ in record time (well I’ll actually understand what I’m doing and be able to develop more great sites for small businesses. You have no idea how invaluable your help & sharing of your know-how is. THANKYOU!
OK don’t have this sorted! Damn! Have changed
‘<div class=”row”>’
‘<div class=”<?php echo tc__f( ‘tc_column_content_wrapper_classes’ , ‘row column-content-wrapper’ ) ?>”>’then added in the get side bar:
‘ </div><!–.article-container –><?php wp_reset_query(); ?>
<?php do_action( ‘__after_article_container’); ##hook of left sidebar?>
<?php get_sidebar( ‘right’ ); ?>
</div><!–.row –>
</div><!– .container role: main –>’Still have the right side bar under the blog list. The website link is: https://saegroup.com.au/about-us/sae-group-news/
Forum: Themes and Templates
In reply to: [Customizr] Featured Pages on another page other than homeThanks ElectricFeet you’ve been an absolute star with a couple of my WP projects & I have you Guide bookmarked. Yes have a back up & as per anything IT it seems the more you learn the more you realise you don’t know. Will let you know when I have this site the way it should be ??