Forum Replies Created
-
AuthorPosts
-
marybaum
ParticipantThanks, Bill! It does work.
I'll change the breadcrumb-remove - though I think I may want to keep it. Only problem is that having removed all the content, it shows up below my widgets, and I'm not clear from looking at the hook reference which one would get it above them. Did I miss a before_wrap hook? Can I invent hooks? Like before_featured_area?
Thanks again for looking at the code!
Michael, looking forward to the end of your magazine journey.
Night all . . . I'll check in in the morning.
Mary
Sharing the good news about the wonders of modern CSS and the split-step. Either one should get you moving fast. 😀
marybaum
ParticipantWell. Suddenly the code I posted on Pastebin is working!
With one change, anyway:
I changed this action and function on pastebin:
add_action( 'genesis_meta', 'minimumFRC_tourney_genesis_meta' );
/**
 * Add widget support for tourney page.
 *
 */
function minimumFRC_tourney_genesis_meta() {
    if ( is_active_sidebar( 'tourney-featured-left' ) || is_active_sidebar( 'tourney-featured-right' ) ) {
        add_action( 'genesis_after_header', 'minimumFRC_tourney_loop_helper' );
    }
}
to this in my file:
/**
* Add widget support for tourney page.
*
*/add_action( 'genesis_meta', 'minimumFRC_tourney_genesis_meta' );
function minimumFRC_tourney_genesis_meta() {
if ( is_active_sidebar( 'tourney-featured-left' ) || is_active_sidebar( 'tourney-featured-right' ) ) {
add_action( 'genesis_after_header', 'minimumFRC_tourney_loop_helper' );
}
}So the comment comes before both the action and the function.
For some reason the breadcrumbs are still on the page, even though there's a remove action that says it's not supposed to be there, but I am NOT going to quibble.
Goodnight, Michael, Brad and Bill!
Sharing the good news about the wonders of modern CSS and the split-step. Either one should get you moving fast. 😀
marybaum
ParticipantOkay - here's a latest version. Thought it might be a good idea to imitate the landing page and disable all the page parts this template doesn't use - you'll notice (if you care) the home page doesn't use them either, but I just hid them with css.
MB
Relevant functions:
Sharing the good news about the wonders of modern CSS and the split-step. Either one should get you moving fast. 😀
marybaum
ParticipantMy guess would be that you're saving the documents into a folder you don't have the proper permissions for - in other words, the folder is somehow not connected with your user account. I'm not a Windows person, but I would imagine this works nearly the same on both platforms. If you are not the owner of this computer, or if you do own the computer but you have someone maintain it for you, that person needs to give you what are called "administrator privileges." Then s/he needs to show you how to control the access privileges of folders and files. That way, you can always see to it that you can control the files you create.
Oops! There's a problem with what I just wrote.
Can you spot it? How is it that you can save a file into a folder in the first place if you don't have what are called 'write privileges' to that folder? That should never happen.
That tells me there's actually some kind of problem with the way your computer is assigning privileges on your hard drive.
On the Mac there's a simple fix in one of the utility apps we run every so often that fixes this. I imagine there's a similar utility on Windows - or there's another relatively simple fix, like clearing the cache of the system software. Whoever maintains your computer will know what I'm talking about.
Hope that helps.
Mary Baum
Sharing the good news about the wonders of modern CSS and the split-step. Either one should get you moving fast. 😀
marybaum
ParticipantSince you and I seem to be at about the same stage, I suggest you take what I say with a grain of salt. One thing that jumps out at me: you have a div for entertainment-middle but no php registering it as a widget area.
I'd be tempted to change this:
if ( is_active_sidebar( ‘entertainment-left’ ) || is_active_sidebar( ‘entertainment-right’ ) ) {
echo ‘<div class=”entertainment-middle”>’;
to mirror your next code block exactly, only be all about entertainment-middle. Like maybe -
if ( is_active_sidebar( ‘entertainment-middle’ ) ) {
echo ‘<div class=”entertainment-middle”>’;
dynamic_sidebar( ‘entertainment-middle’ );
echo ‘</div><!– end .entertainment-middle –>’;And I'm assuming you're then - or beforehand - (who cares about chronology?) registering all these new widget areas in functions.php, right? I think it would be very easy to get tired and forget to do that - especially since I think you have six of them. In fact, I could see myself pulling just such a stunt and then wondering why the widgets weren't showing up on the Widgets page in the Admin area . . . 😉
Now then - here's hoping someone who has actual php expertise can shed some light on both your and my problems in this area. I have approximately 48 hours until I put some print stuff to bed, and then I have to get my tourney info up one way or the other before the stuff gets delivered, and I'm sure you don't have until next fall . . . 😉
Waiting with my new BFF ...
MB
Sharing the good news about the wonders of modern CSS and the split-step. Either one should get you moving fast. 😀
marybaum
ParticipantDidn't seem to make a difference.
I also fixed the egregious typo at the end of
dynamic_sidebar( ‘tourney-featured-left’ );Pa and got rid of the superfluous Pa that didn't belong - also didn't change anything.
I noticed that the landing page template has a custom body class function:
// Add custom body class to the head
add_filter( 'body_class', 'minimum_add_body_class' );
function minimum_add_body_class( $classes ) {
$classes[] = 'minimum-landing';
return $classes;
}So I tried something like that with Tourney, but that didn't change the server error either.
I also tried renaming the function.
The new page displays happily if I switch to the landing-page template. I suppose I could add the content as a bunch of static html, but I want to learn to do it this way.
Sharing the good news about the wonders of modern CSS and the split-step. Either one should get you moving fast. 😀
marybaum
ParticipantSounds like I should take it out of the template above. Thanks! I'll try that.
MB
Sharing the good news about the wonders of modern CSS and the split-step. Either one should get you moving fast. 😀
marybaum
ParticipantI'm working on the same thing and getting a server error.
The new page is http://www.frontenactennis.com/its-tourney-time/.
page_tourney.php:
<?php
/*
Template Name: Tourney
*/add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' );
add_filter( 'body_class', 'minimum_add_body_class' );function minimum_add_body_class( $classes ) {
$classes[] = 'tourney';
return $classes;
}
remove_action( 'genesis_after_post_content', 'genesis_post_meta' );
remove_action( 'genesis_loop', 'genesis_do_loop' );add_action( 'genesis_meta', 'minimumFRC_tourney_genesis_meta' );
/**
* Add widget support for tourney page.
*
*/
function minimumFRC_tourney_genesis_meta() {if ( is_active_sidebar( 'tourney-featured-left' ) || is_active_sidebar( 'tourney-featured-right' ) ) {
add_action( 'genesis_after_header', 'minimumFRC_tourney_loop_helper' );
}
}/**
* Display widget content for tourney featured sections.
*
*/
function minimumFRC_tourney_loop_helper() {if ( is_active_sidebar( 'tourney-featured-left' ) || is_active_sidebar( 'tourney-featured-right' ) ) {
echo '<div id="tourney-featured"><div class="wrap clearfix">';
echo '<div class="tourney-featured-left">';
dynamic_sidebar( 'tourney-featured-left' );Pa
echo '</div><!-- end .tourney-featured-left -->';echo '<div class="tourney-featured-right">';
dynamic_sidebar( 'tourney-featured-right' );
echo '</div><!-- end .tourney-featured-right -->';echo '</div><!-- end .wrap --></div><!-- end #tourney-featured -->';
}
}genesis();
I've styled the new classes and registered the sidebar areas in functions.php - clearly there's more I'm missing. Originally I had gotten even more ambitious and added a middle widget area, but thought I could solve the problem by going back to a direct clone of the home page. I will style the featured-left area differently - with two columns - to make up the difference.
Thanks for the tip about the Template Name - I'd missed that before and not even had the template show up in the page editor.
All the best,
Mary Baum
Sharing the good news about the wonders of modern CSS and the split-step. Either one should get you moving fast. 😀
marybaum
ParticipantThey look fine to me now.
Sharing the good news about the wonders of modern CSS and the split-step. Either one should get you moving fast. 😀
February 23, 2013 at 5:22 pm in reply to: Crystal Theme – Swapping Home Top Left & Home Top Right Panels #22474marybaum
ParticipantIs there a reason you want to switch the panels themselves instead of just their contents? The latter is something you can do on the widgets panel. Also, if its a question of styling, just style the left one the way the right one is now, and style the right one the way the left one is now.
Sharing the good news about the wonders of modern CSS and the split-step. Either one should get you moving fast. 😀
marybaum
ParticipantTo get all those posts off your home page, first make sure your home-page widgets are set with only the posts you want them to show - generally a maximum of 1-3 posts per widget area. Then pare even those posts back until each widened area only has one post if that's all you want.
Sharing the good news about the wonders of modern CSS and the split-step. Either one should get you moving fast. 😀
marybaum
ParticipantI agree about not positioning it absolutely. (Blergh.)
What about using a function to unhook it from its own div and hook it into the nav div - then float it right? You'll prolly want to widen the nav wrap. Or you could take the secondary nav, keep it in ins div and either hook the menu in the nav div or the nav wrap, OR drop the menu into the menu widget in the header- right widget area.
Those would be my thoughts.
Sharing the good news about the wonders of modern CSS and the split-step. Either one should get you moving fast. 😀
marybaum
ParticipantIf you know CSS, you can do just about anything with Genesis. The best way is to start with the Genesis Sample Child theme - don't change the Genesis Framework itself.
Sharing the good news about the wonders of modern CSS and the split-step. Either one should get you moving fast. 😀
February 21, 2013 at 12:55 pm in reply to: Call Home Welcome Section on other pages besides home page #22026marybaum
ParticipantWhat happens if you try the after_header hook instead of the before_content hook?
Sharing the good news about the wonders of modern CSS and the split-step. Either one should get you moving fast. 😀
marybaum
ParticipantThen go to Genesis Theme Settings on the Dashboard and choose the full-width layout as your default for posts and pages.
It's the last thumbnail in the row of choices, I believe.MB
Sharing the good news about the wonders of modern CSS and the split-step. Either one should get you moving fast. 😀
marybaum
ParticipantA couple things occur to me.
1. Temporary glitch at your host. That is what you mean by ISP? Lately I've had a few of those in Chrome in Mountain Lion, but only on one specific Bluehost server. Gotta say, I'm less fond of Mountain Lion than any Big Cat release in the last four years. In fact, I call it Stinkeye, for the look in the lion's face - totally reminds me of my daughter when she was 17. Acts like it too. Only instead of throwing beverages on me, Stinkeye just greets me in the morning with crash reports.
PS> Hosting support weenies are always going to say its a coding error. Unless you're using your ISP - or worse, your Mac - as a web host, then, yes, it is a coding error. (Sorry - I can never resist a bad joke. My bad.) But seriously. You can get shared hosting some places for $3/month. That's, what, three boxes of Hamburger Helper? Or a small latte here in the great flyover.
2. 1.7 --> 1.9 sounds like a biiiig jump. If this wasn't a temporary glitch, I'll bet you that latte a plugin went rogue on you, if you had plugins running. Another thing to check: what version of WP are you running?
Well - that's all I can think of for the moment. There's some corn soufflé calling my name in the kitchen - let us know how things work out.
Sharing the good news about the wonders of modern CSS and the split-step. Either one should get you moving fast. 😀
marybaum
ParticipantThis reply has been marked as private.marybaum
ParticipantYou can't talk her into letting you add two more slides with two more line of copy to extend the message - maybe one with a house and one with a flower garden - so you have a working slider that has a three - slide message? That, I think, will take you less time than messing with the settings to get the one image to stop. 'Cause I'm pretty sure you can find two more stock images and set them up in about half an hour.
Sharing the good news about the wonders of modern CSS and the split-step. Either one should get you moving fast. 😀
marybaum
ParticipantFirst question : is this your site or will you have users? If it's just you, you can choose a full- width layout in Theme Settings. If you'll have users, you may want to hard-code your choice in your theme mods so they don't see any other choices BUT. Full-width pages. That's a bit more involved but gives you full control. It also requires some tinkering with the php if you're game. 🙂
Sharing the good news about the wonders of modern CSS and the split-step. Either one should get you moving fast. 😀
marybaum
ParticipantBeautiful. Love the type.
Sharing the good news about the wonders of modern CSS and the split-step. Either one should get you moving fast. 😀
-
AuthorPosts