Forum Replies Created
-
AuthorPosts
-
Zach Russell
MemberHi Susan,
I've never figured this one out. I am actually building another site on the altitude pro theme as well, so it'd be a huge help.
———-
Zach Russell
President, ProTech Internet GroupZach Russell
MemberOh wow, figures it was that easy - thanks for the tip!
———-
Zach Russell
President, ProTech Internet GroupZach Russell
MemberI was able to get it working, but it feels sloppy. Is this the best way to do it?
//* Add Yoast Breadcrumbs add_action( 'genesis_before_entry', 'sbf_do_breadcrumbs' ); function sbf_do_breadcrumbs() { if( ! is_front_page() and is_page() ) { if( function_exists( 'yoast_breadcrumb') ) { yoast_breadcrumb( '<p id="breadcrumbs">', '</p>'); } } }
———-
Zach Russell
President, ProTech Internet GroupZach Russell
MemberSo if I hook the yoast function into
genesis_before_entry
it works - except it shows on all posts and pages. I don't want that, If I try to wrap the hook into a!is_post()
oris_page()
it doesn't work. For example:<?php //* Add Yoast Breadcrumbs if( is_page() ) { add_action( 'genesis_before_entry', 'sbf_do_breadcrumbs' ); } function sbf_do_breadcrumbs() { if( function_exists( 'yoast_breadcrumb') ) { yoast_breadcrumb( '<p id="breadcrumbs">', '</p>'); } }
———-
Zach Russell
President, ProTech Internet GroupZach Russell
MemberMoving all JavaScript to the footer isn't necessarily the solution to problem you're having. I just rank a Pingdon Test and I would assume that the high CPU load is related to the 289 requests that need to be made in order for your site to load completely. The first thing I would do is try to remove any unnecessary plugins and scripts. Second I would look into is implementing a caching plugin, like W3 Total Cache - this will significantly reduce server load. Lastly, I would consider using a plugin like autoptimize, which will combine CSS and JavaScript into a single file (instead of many, many separate files) and you have the option of moving the JavaScript to the footer. In my experience, your site will likely break if you move it to the footer, so you will need to go into autoptimize's advanced settings and select
Force JavaScript in <head>
.If you need any help setting anything up, please follow up and i'll do what I can to help speed up your site and reduce server load.
———-
Zach Russell
President, ProTech Internet GroupZach Russell
MemberYea, I have no idea what was happening, but it wasn't serving the correct logo to mobile user-agents. It's resolved now.
———-
Zach Russell
President, ProTech Internet GroupZach Russell
MemberZach Russell
MemberThanks David,
Looks like a priority of 5 did the trick!
Cheers!
———-
Zach Russell
President, ProTech Internet GroupZach Russell
MemberHello David,
Thank you for the quick response! That executes
genesis_do_nav()
in the<header>
element, but does it at the bottom. I need this to execute before anything else in the header. Meaning before the site title/header image and header right, but still within the n<head>
element.Does that make sense?
Thanks
———-
Zach Russell
President, ProTech Internet GroupZach Russell
MemberAndrea, that worked! Wow that's hackey though 🙂
Thanks a ton for your help!
———-
Zach Russell
President, ProTech Internet GroupZach Russell
MemberThanks for your swift response. I added the home text and text-indent and the result wasn't what you predicted 🙂
Check out the site and see for yourself, please.
———-
Zach Russell
President, ProTech Internet GroupZach Russell
MemberThank you Andrea, that fixed part of it, but, there is still an issue with it not being clickable. Somehow the clickable space of the link is being pushed down to below the button. Try to click the home button on my site and you'll see what I mean.
Thanks again for your help!
———-
Zach Russell
President, ProTech Internet GroupZach Russell
MemberCan you give use a little more background information? What Operating System are you using? What version of Chrome (click the gear > "About Google Chrome" item) are you using? Can you send a screenshot? Can you try it in another "Webkit" browser (Safari)?
Thanks
Zach
———-
Zach Russell
President, ProTech Internet GroupJanuary 20, 2014 at 8:41 am in reply to: Move Post Title on pages: Genesis Sandbox (HTML5 Markup) #86093Zach Russell
MemberSomeone private replied to me and linked to a post that showed me exactly what needed to be done. I'm pulling what I need to from the theme's functions.php file:
remove_action( 'genesis_entry_header', 'genesis_do_post_title' ); remove_action( 'genesis_entry_header', 'genesis_entry_header_markup_open', 5 ); remove_action( 'genesis_entry_header', 'genesis_entry_header_markup_close', 15 );
Add this to
genesis_before_content_sidebar_wrap
in the Genesis Simple Hooks Plugin:<?php if( is_singular() ) { genesis_entry_header_markup_open(); genesis_do_post_title(); genesis_entry_header_markup_close(); } ?>
Make sure you check "execute php".
Let me know if this works, if not I can help you with some other tricks I know.
———-
Zach Russell
President, ProTech Internet GroupZach Russell
MemberWorks like a charm! Only problem was I tried to concatenate strings using Python syntax :/ Thanks for your help!
———-
Zach Russell
President, ProTech Internet GroupZach Russell
MemberHaha well now I know. As I get into more complex genesis development projects I know this will help! Thanks man.
———-
Zach Russell
President, ProTech Internet GroupZach Russell
MemberGenius!
I was a little confused adding priorities (thats what the numbers are right?) to the hooks.
I'll let you know how it works!
Thank you
———-
Zach Russell
President, ProTech Internet GroupZach Russell
MemberIt's quite a bit of CSS work but you're going to have to have to make some major style changes to the site -- essentially making the wrap full width then styling child elements to be a fixed (or percentage width). I recently did this with my site -- but it's not very responsive yet. Look at how http://youneedfat.com/ does it (using firebug or chrome developer tools, I prefer chrome).
For the background pattern, you should then take the image as a pattern (only a few pixels wide)Â and do a repeat-x attribute to it when the image is called in the CSS for it to stretch the full width of the header. I would then make the logo a transparent PNG file and place it on top of the header. There is a lot of styling that will need to be redone as it styles down as well.
Hope this helps!
———-
Zach Russell
President, ProTech Internet GroupZach Russell
MemberNazz,
I understand your question and it is a mixture between basic SEO and technical SEO. There isn't really any other way to fix your probother their than writing a meta description. Â technical SEP and WordPress development is what I do for a living, and if I saw Amy white hat way for you to get around it I would tell you. There is no reason why you shouldn't write a meta description for every indexable page on your site, even if you have to update it when you update the page, it's only 155 characters. You should also note that Google makes about 500 algorithm changes a year so that Is probably why it worked before and doesn't now.
———-
Zach Russell
President, ProTech Internet GroupZach Russell
MemberNazz,
Your prolem isn't with you needing to hide text, it's that you aren't using what is called a Meta Description tag. Please Read Moz's Post on Meta Desciptions for more info on the matter. That whole guide is integral for anyone who isn't completely familiar with SEO. In the post/page editor you will be able to make a meta description in the Genesis SEO settings. Wait a few days to a week and you should be golden. When you don't use a meta description Google Can use the text from the page to make one.
Hope this helps
———-
Zach Russell
President, ProTech Internet Group -
AuthorPosts