Forum Replies Created
-
AuthorPosts
-
braderz31Member
Hi Victor - thanks for checking.
Bizarrely, I couldn't get those last two links working at all. I had to include a javascript snippet in the responsive-menu.js file to 'make' it work.
I'm annoyed I had to hack it but I was running out of time.
This is what I did in case anyone has this issue
jQuery(".responsive-menu > .menu-item").click(function(event){ if (event.target !== this) { var clickedUrl = event.target.href; clickedUrl = clickedUrl.split('#')[0] var currentUrl = window.location.href; currentUrl = currentUrl.split('#')[0] if (clickedUrl !== currentUrl) { var t = event.target.getAttribute("target"); if (t == "_blank") { if (window.location.pathname == '/') { window.open(clickedUrl); } } else { window.location.assign(clickedUrl); } } return; } jQuery(this).find(".sub-menu:first").slideToggle(function() { jQuery(this).parent().toggleClass("menu-open"); }); });
braderz31MemberGuys - thanks all for the help here.
For anyone else trying to achieve this, you will notice your sidebar will now appear above the page content when viewed on a mobile device. I personally didn't want this so I tweaked the code to ensure the hooks are only actioned if the page is not viewed on a mobile device
if ( ! wp_is_mobile() ) { remove_action( 'genesis_after_content', 'genesis_get_sidebar' ); add_action( 'genesis_before_content', 'genesis_get_sidebar' ); }
Hope this helps 🙂
February 27, 2015 at 2:32 pm in reply to: Added div before content and sidebar is pushed down #142576braderz31MemberVictor - you are a star!!!!
Thank you, the code works.
Can I just check that my code is correct... it works I just want to make sure I'm doing it right
//Add Call To Action Box function cta_box() { $cta = get_field('call_to_action'); echo '<div class="cta-box">'.$cta.'</div>'; } add_action('genesis_before_content', 'cta_box'); remove_action( 'genesis_after_content', 'genesis_get_sidebar' ); add_action( 'genesis_before_content', 'genesis_get_sidebar' );
braderz31MemberNot sure if anyone still needs to do this but I was able to amend the positioning of my background images with this media query
@media only screen and (max-width: 1140px) { .home-section-1, .home-section-3, .home-section-5 { background-size: cover; background-position: left; } }
Obviously you can amend the background size and position to suit.
October 7, 2014 at 2:43 pm in reply to: Using genesis_before_entry hook on Education Pro homepage #127021braderz31MemberHey- Thanks for responding.
I've just tried it and I get the same.
The container is appearing on the homepage and the blog page.
Any more thoughts?
🙂
braderz31MemberOh man - I feel a bit stupid now!
Thank you - I can't believe I tried to over complicate things (again)
Cheers
September 2, 2014 at 8:12 am in reply to: Ambience Pro and Genesis Connect For Woocommerce Plugin #122400braderz31MemberHi All,
Just in case anyone else has this issue, I've finally managed to fix it and it was actually pretty simple.
When I installed WooCommerce not all the woocommerce pages were automatically created. This is what the problem is.
So to solve it, simply go the WooCommerce admin menu in the WordPress admin area. Select the 'System Status' menu option and then select the 'Tools' tab. Here you will see an option to 'Install WooCommerce Pages'
Select this option so that all the pages are re-created. Next go to your WordPress pages and ensure they are all published.
This solved my problem
Thanks
Brad
August 26, 2014 at 3:49 pm in reply to: Ambience Pro and Genesis Connect For Woocommerce Plugin #121210braderz31MemberHi Tom - sorry I've been playing around with it.
I'll reverted it back so you can see the issue.
Thanks kellylise - I'll give that a go too
Thanks
August 26, 2014 at 1:35 pm in reply to: Ambience Pro and Genesis Connect For Woocommerce Plugin #121185braderz31MemberHey Tom
Thanks so much for your reply.
In answer to your questions:
1) I've tried deactivating all plugins expect for Woocommerce and Genesis Connect but still get the same issue.
2) I don't have any other woocommerce extensions
3) All the woocommerce templates are working fine... it's the default wordpress template that no longer works (the 'About Us' page for example) when Genesis Connect is activated. In fact, it's only when I add the following to the functions.php file that causes the problemadd_theme_support( 'genesis-connect-woocommerce' );
I haven't yet inquired at http://my.studiopress.com/help/ but I shall do that now. - thanks 🙂
I tried installing Genesis Style TRump but the problem still persists.
Here is a link to the site click here It's the About page where all the content is now missing.
Thanks
braderz31MemberIt was a bit of a hack and I'm not entirely content with it but I've achieved the desired result.
I ended up using the CSS mentioned above to remove the time and date for the featured posts on the homepage.
Then for the individual posts page I had to amend this function in the functions.php file:
//* Customize the entry meta in the entry header add_filter( 'genesis_post_info', 'ambiance_single_post_info_filter' ); function ambiance_single_post_info_filter( $post_info ) { $post_info = '[post_date] [post_author_posts_link] [post_comments] [post_edit]'; return $post_info; }
I amended it to this
//* Customize the entry meta in the entry header add_filter( 'genesis_post_info', 'ambiance_single_post_info_filter' ); function ambiance_single_post_info_filter( $post_info ) { $post_info = ''; return $post_info; }
If anyone knows of a cleaner way to do this, I'd be very grateful
Thanks
Brad
braderz31MemberJust for info - I installed the plugin and it only allows you to remove post info from the post itself and not on the homepage featured image 🙁
braderz31MemberI've just found this code from the studiopress code snippets but it doesn't seem to work
//* Remove the post info function remove_action( 'genesis_before_post_content', 'genesis_post_info' );
any ideas what else to try?
If I have to resort to the plugin I will
Thanks
Brad
braderz31MemberAh the plugin - thank you.
I'll try that
braderz31MemberHi
Thanks for your reply but ideally I want to remove the markup completely (just for cleanliness) rather than hiding it from the browser with css.
I guess I just need a function so I better go and find the genesis functions and hooks that are available.
Thanks
Brad
braderz31MemberThat's great - thank you so much for your helpful response.
Kind regards
braderz31MemberI have already written a media query to move the menu to where it is now...
Perhaps I wasn't clear enough in my previous post... I'm asking for advice on what further CSS I need to write in order to achieve what I've explained above
July 2, 2014 at 2:15 am in reply to: Centric Pro – Header Overlapping Homepage Content on Mobile Devices #112597braderz31MemberThat's great - thank you very much 🙂
June 30, 2014 at 10:25 am in reply to: Centric Pro – Header Overlapping Homepage Content on Mobile Devices #112106braderz31MemberHi Jan
Thank you for your response.
I would still like to keep the header fixed so that you can access the menu regardless of how far down the page you scroll, but the issues is, that the header does not stay minimised when you first view the site. Instead you have to scroll down slightly so that the header minimises and the scroll back up in order to read the main headline in the homepage content. It would be great if I could send a screenshot.
I just wondered if there was a way to keep the header minimised on mobile devices or even just keep it minimised when the visitor first lands on the site
Thanks
-
AuthorPosts