Forum Replies Created
-
AuthorPosts
-
bionaryMember
Since you’re already on Godaddy why don’t you switch to their managed wordpress plan.
Sounds like a sham to me but maybe worth a look. But the site is not installed through any of their one-click installation stuff. It was installed by me, database and all. Not sure if that matters.
bionaryMember@Summer
I do have godaddy as a matter of fact. but the other sites that I tested that load faster are mostly dynamic php/mysql sites as well that I built from scratch over the years with my own MVC architecture. They do however, perform far fewer tasks then wordpress of course so they are much leaner in size and script calling. I'm sure wordpress hits the database many times before it outputs the html etc. in comparison.Without getting into an affiliate marketing rub down do you guys have any experience/recommendations for a hosting solution that is acceptable for wordpress?
bionaryMember@nunotmp interesting resource, thanks.
I put in a few more sites I have running off the same exact server and they result in page loads around 2.5 - 4.5 secs while the wordpress site records a load time of 20-30 seconds according to the tools.pingdom.com site.bionaryMemberI guess you guys are right...what's really weird is I tried the site twice from two different locations, one being a mobile but wifi connected device and in both occasions the site took 20+ seconds to load. But alas I checked again now and everything seems to load quicker...I think I just got unlucky for those two tests. weird. WP is definitely not as fast as a custom site but 3 seconds is acceptable I suppose. I was hoping for <1 second but I don't feel like paying more for hosting so it'll have to do.
Thank you!
bionaryMemberI knew that would be a recommendation however WordPress runs noticeably slower locally too so I don't completely buy it. As a developer I always have my cache shut off but still... The lag is ridiculous. Are there other solutions that anyone is familiar with? I've heard of wp caching plugins. Anybody? I'm really trying to like WordPress but it's a hog:)
bionaryMemberSo I triedd out that link you mentioned above. It works great but fails under one circumstance (which is of course how I need to use it) let me explain....
first the code:// Register new sidebar genesis_register_sidebar( array( 'id' => 'job-single-sidebar', 'name' => 'Single Job Sidebar', 'description' => 'This is the sidebar for single job pages[ this was added via functions.php ].', ) ); add_action('get_header','cd_change_genesis_sidebar'); function cd_change_genesis_sidebar() { if ( is_page('blog') ) { remove_action( 'genesis_sidebar', 'genesis_do_sidebar' ); //remove the default genesis sidebar add_action( 'genesis_sidebar', 'cd_do_sidebar' ); //add an action hook to call the function for my custom sidebar } } //Function to output my custom sidebar function cd_do_sidebar() { dynamic_sidebar( 'job-single-sidebar' ); }
It removes replaces the default sidebar except on the page that is designated as the blog if choosen in settings.
So I had Settings>Reading>front page displays set to Post Page:blog .... and it won't do the sidebar swap on that page. ... I did several tests with other pages/configurations and for some reason the swap will not happen on the designated "front page display"bionaryMemberSure,
The genesis simple sidebars plugin, worked for some pages and not others and when clicking on update (setting it up) it always threw back a pile of php errors. I inquired about it via the paid members support and I got this response:
"We are aware of the issue and we are working on a fix."
bionaryMemberah, ok thanks.
bionaryMemberactually I take that back.... not sure why but some of my pages have the page name as a class attached to body tag and others simply have page-id-##.
i can't make sense of it.
bionaryMemberI must have been drinking. duh.. thanks again.
bionaryMember@braddalton
Normally I add an id to body or page wrapper but now that I'm working around wordpress what is the best practice for targeting a page for specific CSS?Looking at source code I can see wp adds a class to the body for each page and it appears to be it's database Id...so I could do something like:
body.page-id-180{ /* my customized css for just this page*/ }
This will work but then If I swap out the home page for a new one this will break.
What do you recommend?
Thanks.
bionaryMember@braddalton.
The gap?, It did seem like there was a little room there, I thought that was just the template, because my conditional does remove the image and collapses somewhat, but you're right, it's probably unnecessarily large.I'm not sure what is the protocol for doing these sorts of things. So as not to loose my additions with future theme updates, I tried making a child class of theme:beautiful but it failed. (i read there was a limit for child classes?) I attempted this so that i could add custom css.
Not sure how i would target the spacing issue per page though. css i presume?
It's funny, I have over a decade's experience with fe/be web dev but I'm a complete noob with wordpress. I know I could hack anything to get it to do what I want, but I'm trying really hard to be patient and follow best practices:)
What do you suggest for the gap?bionaryMemberahh, I see now... I was looking for "image" not "banner" - skipped over that one. Your line 100 hit the nail on the head.
Thank you so much.
For anyone else looking to do this://* Hook site header banner after header add_action( 'genesis_after_header', 'beautiful_site_header_banner' ); function beautiful_site_header_banner() { if( is_front_page() ){ if ( ! get_background_image() ) return; echo '<div class="site-header-banner"></div>'; } }
bionaryMemberExcuse my ignorance but:
1. what file would I add this conditional tag?
2. after what function?
3. would it look something like: ?
if(is_front_page()){ ...not sure what to look for }
bionaryMemberI'm afraid it's a local instance. I'm just getting the feel for wordpress and genesis locally before I dare port it live.
bionaryMemberadd this to my child theme? I'm using "beautiful".
will this break updates?1. when i open page.php template all i see is: genesis(); not sure how to add php here? wouldn't the scripts results get added after or before the page and not inside the page?
2. can you provide an example please? not sure what "the function" means.
(I'm brand new to wp )
Thanks -
AuthorPosts