Forum Replies Created
-
AuthorPosts
-
msummersMember
Thanks, Victor - I guess that might help! Try http://new.gerickeusa.com/company/
msummersMemberWhat a relief! That works fine. I'm so happy it was a simple oversight on my part. While you are here, can I ask you how to turn those Font Awesome carats on the right of the menu options black? I've tried setting .nav-primary .genesis-nav-menu.responsive-menu > .menu-item-has-children:before {
color: rgba(255, 255, 255,1);
}
using Chrome and it works, but when I put that in my custom CSS mobile styles it doesn't, even with !important.msummersMemberApologies - I can see that I was mistaken.
Here's the situation - I am using Bill Erickson's display-posts short code to display the most recent post along with its featured image in a text widget on the home page of the site. I noticed that there was a link on that image contained in the widget and assumed that it was a link to the enlarged image. In fact, it's a link to the full post. I am OK with that, so I withdraw my question! But thanks for the speedy reply. 🙂
Murray
msummersMemberOh that's excellent! Thank you so much, MortenK.
msummersMemberThanks, Christoph. From my perspective, it's definitely worth the hassle! I am eager to learn how to do these things, you see... 🙂
Anyhow, I do know how to register a widget area already - that's not my problem. What I need to know is what should I do to UNREGISTER the widget area (from a child theme) when that widget area is defined in the parent Genesis lib folder in a file called widgetize.php. Can I just add a 'lib' folder to my child theme and add modifications to a newly created 'widgetize.php' file in that child's new lib folder? And would I need to UNREGISTER the original widget area first? If so, can you tell me how to do that, please?
msummersMemberLet me clarify my question:
In the Genesis lib folder there is a file called widgetize.php where the 'genesis-specific' widget areas are created. This is where the code is that forms those (potentially) 4 footer widget areas. The code is -
function genesis_register_footer_widget_areas() { $footer_widgets = get_theme_support( 'genesis-footer-widgets' ); if ( ! $footer_widgets || ! isset( $footer_widgets[0] ) || ! is_numeric( $footer_widgets[0] ) ) return; $footer_widgets = (int) $footer_widgets[0]; $counter = 1; while ( $counter <= $footer_widgets ) { genesis_register_widget_area( array( 'id' => sprintf( 'footer-%d', $counter ), 'name' => sprintf( __( 'Footer %d', 'genesis' ), $counter ), 'description' => sprintf( __( 'Footer %d widget area.', 'genesis' ), $counter ), '_genesis_builtin' => true, ) ); $counter++; } }
I can limit that code to a single widget area by using the previously mentioned 'add_theme_support()' function so that the widget area will only support a single widget. What I would like to do now is to change this code -
'name' => sprintf( __( 'Footer %d', 'genesis' ), $counter ), 'description' => sprintf( __( 'Footer %d widget area.', 'genesis' ), $counter ),
to a custom name and description. It seems like I'd need to unregister that widget area and then redefine it in Outreach Pro's functions.php file, but how to I do that? Neither 'unregister_widget_area' nor 'unregister_sidebar' seem to work.
Thanks for any further help!
msummersMemberGot it! I added this to my child-theme's functions.php:
add_theme_support( 'genesis-footer-widgets',1);
and the other 3 widget areas disappeared. Now how can I change that widget area's description and title?
msummersMemberThanks, Brad! But the code for these widget areas (footer1-5) is not in my functions file. I can see the loop that adds them in the parent functions file, but I'm not clear on how to just remove 2-4 and leave footer1 in place. I suppose there is an unregister_sidebar() command that I can use, but can you help with the use of that?
msummersMemberWell, that takes care of that! Thanks again, Victor...
msummersMemberYes - that works beautifully. I'm still curious as to how it targets that specific tag, though. Thank you, Victor.
msummersMemberVictor - thanks so much. That's exactly what I was looking for. But how will that filter add the attribute to that <main> tag specifically? Anyhow, I'll try it and see what happens...
msummersMemberCan you show us the code in your recipe search widget, please?
February 5, 2016 at 6:18 am in reply to: Display specific category list in sidebar with custom format #178376msummersMemberThat's great - thanks! Is there any way to suppress the anchor around the post title?
February 4, 2016 at 1:32 pm in reply to: Display specific category list in sidebar with custom format #178326msummersMemberI hate to miss really obvious ones like that, but THANK YOU! Of course that works. Now I have a follow-on question:
Check the page at http://www.ubymca.org/WP-Y and see that I am using the featured posts widget to list headlines from a group of posts with the category "whats-new". I would love to be able to have this list do one of the following:
* have the link on the headline not link to the individual post but rather to the link that is shown on the individual post
* have the headline display a link underneath so that the reader can just go directly to the linked site/pdf instead of having to cycle through the post itself. When I try to put that link in the body of the post, the link only works on the post itself, not in this list - apparently the HTML for the anchor tag is stripped out and so it only displays the link text without the anchor tag.(don't worry about the format of the individual posts - it's under development)
I reckon that the second wish on my wish list is the better one because I don't think I can specify any target link for each individual headline...
msummersMemberOK - I used the genesis_before_content action hook and that seems to work well!
msummersMemberWell, that's a good question. By adding it to the loop am I placing it below the content?
msummersMemberHi, Cristoph - thanks for the reply! You have helped me before and I appreciate it.
The widget is defined in functions.php -
//* Register GWS widget areas
genesis_register_sidebar( array(
'id' => 'activities',
'name' => __( 'Activities', 'GWS' ),
'description' => __( 'This is above the content section of the page.', 'GWS' ),
) );
// End GWSTo place this widget on the site pages, I made a copy of the front-page template. After editing out the home page conditional, I added this action -
//* Add Activities widget
add_action( 'genesis_loop', 'GWS_activities_widgets' );and defined this function -
// GWS function for Activities
function GWS_activities_widgets() {genesis_widget_area( 'activities', array(
'before' => '<div class="activities widget-area">',
'after' => '</div>',
) );}
add_action( 'activities-top', 'GWS_activities_widgets',1 );//End GWS
Am I hopelessly confused?
The page in question can be seen at http://www.ubymca.org/WP-Y/sample-page, and due to recent hacks by me, the page is no longer showing any content! Prior to that it would show the content, but it would be above the activities widget.
Let me know if you need more information, please!
msummersMemberRight now, your code looks like this -
</select>
<br/><select name='recipe-post_tag' id='recipe-post_tag' class='postform' >The same is true for the next <select> tag. Just remove the <br/> and apply a bit of right margin to the select tag...
msummersMemberOf course, you were right - I was astonished by how many absolute widths had crept into my code. I suppose I put them there early on thinking "I will come back to this and change it" and then forgot to do so. I was able to correct the smartphone display with your modifications and a few more of mine, so thanks again for this!
msummersMemberGoodness - that's very kind of you. Thank you so much for this extensive help. I'm sure you are on to something here and will post back with the results.
-
AuthorPosts