Forum Replies Created
-
AuthorPosts
-
tornado
ParticipantIn addition to the above: the canonical link that displays with query_args on paginated pages points to the first page of the blog, which is not what I want, as it essentially tells Google that paginated pages should be ignored.
Am I missing something here or is this all a bit of a mess?
tornado
ParticipantThanks, Anita.
July 23, 2019 at 1:10 pm in reply to: How to hide post content now Genesis theme setting functionality has vanished #492516tornado
ParticipantAdditional:
Hiding the content but keeping the 'continue reading' link is needed also, so users know to click through too read the content.
tornado
ParticipantHi Anita!
Thank you! Yes, I had Simple Edits active, so have removed that and all is good.
Much appreciated.
🙂
tornado
ParticipantHi Victor. Thanks so much for the reply. On the Foodie Pro demo, for example:
https://my.studiopress.com/themes/foodie/#demo-full
you can see they use a + in their mobile menu to indicate the use of a sub menu associated with a menu item. Is there any CSS that could place that + before the menu text, as opposed to it being located to the far right of the screen (to place it left instead of right, but not so the menu text is overlaid)? That would pretty much solve the problem completely as the user could easily see the + and would know to click it.
🙂
tornado
ParticipantBrad, you absolute star. Thank you so much.
Works a charm.
THANK YOU.
tornado
ParticipantThanks for looking into this.
<?php /** * Custom amendments for the theme. * * @package FoodiePro * @copyright Copyright (c) 2017, Feast Design Co. * @license GPL-2.0+ * @since 1.0.1 */ defined( 'WPINC' ) || die; require_once trailingslashit( get_template_directory() ) . 'lib/init.php'; define( 'CHILD_THEME_NAME', 'Foodie Pro Theme' ); define( 'CHILD_THEME_VERSION', '3.1.0' ); define( 'CHILD_THEME_URL', 'https://feastdesignco.com/product/foodie-pro-2/' ); define( 'CHILD_THEME_DEVELOPER', 'Feast Design Co.' ); define( 'FOODIE_PRO_DIR', trailingslashit( get_stylesheet_directory() ) ); define( 'FOODIE_PRO_URI', trailingslashit( get_stylesheet_directory_uri() ) ); add_theme_support( 'genesis-responsive-viewport' ); add_theme_support( 'html5' ); add_theme_support( 'genesis-accessibility', array( 'headings', 'search-form', 'skip-links', ) ); add_theme_support( 'custom-header', array( 'width' => 640, 'height' => 340, 'header-selector' => '.site-title a', 'header-text' => false, ) ); add_theme_support( 'custom-background' ); add_theme_support( 'genesis-connect-woocommerce' ); add_theme_support( 'genesis-after-entry-widget-area' ); add_theme_support( 'genesis-footer-widgets', 4 ); genesis_register_sidebar( array( 'id' => 'before-header', 'name' => __( 'Before Header', 'foodiepro' ), 'description' => __( 'This is the section before the header.', 'foodiepro' ), ) ); genesis_register_sidebar( array( 'id' => 'home-top', 'name' => __( 'Home Top', 'foodiepro' ), 'description' => __( 'This is the home top section.', 'foodiepro' ), ) ); genesis_register_sidebar( array( 'id' => 'home-middle', 'name' => __( 'Home Middle', 'foodiepro' ), 'description' => __( 'This is the home middle section.', 'foodiepro' ), ) ); genesis_register_sidebar( array( 'id' => 'home-bottom', 'name' => __( 'Home Bottom', 'foodiepro' ), 'description' => __( 'This is the home bottom section.', 'foodiepro' ), ) ); genesis_register_sidebar( array( 'id' => 'recipes-top', 'name' => __( 'Recipes Top', 'foodiepro' ), 'description' => __( 'This is the recipes top section.', 'foodiepro' ), ) ); genesis_register_sidebar( array( 'id' => 'recipes-bottom', 'name' => __( 'Recipes Bottom', 'foodiepro' ), 'description' => __( 'This is the recipes bottom section.', 'foodiepro' ), ) ); genesis_register_sidebar( array( 'id' => 'nav-social-menu', 'name' => __( 'Nav Social Menu', 'foodiepro' ), 'description' => __( 'This is the nav social menu section.', 'foodiepro' ), ) ); require_once FOODIE_PRO_DIR . 'lib/helpers.php'; require_once FOODIE_PRO_DIR . 'lib/customize/init.php'; if ( is_admin() ) { require_once FOODIE_PRO_DIR . 'lib/admin/functions.php'; } add_action( 'after_setup_theme', 'foodie_pro_content_width', 0 ); /** * Set the content width and allow it to be filtered directly. * * @since 1.0.0 * @access public * @return void */ function foodie_pro_content_width() { $GLOBALS['content_width'] = apply_filters( 'foodie_pro_content_width', 610 ); } add_action( 'after_setup_theme', 'foodie_pro_load_textdomain' ); /** * Loads the child theme textdomain. * * @since 2.1.0 * @return void */ function foodie_pro_load_textdomain() { load_child_theme_textdomain( 'foodiepro', FOODIE_PRO_DIR . 'languages' ); } add_action( 'init', 'foodie_pro_register_image_sizes', 5 ); /** * Register custom image sizes for the theme. * * @since 1.0.0 * @access public * @return void */ function foodie_pro_register_image_sizes() { add_image_size( 'horizontal-thumbnail', 680, 450, true ); add_image_size( 'horizontal-thumbnail-small', 340, 225, true ); add_image_size( 'vertical-thumbnail', 680, 900, true ); add_image_size( 'vertical-thumbnail-small', 340, 450, true ); add_image_size( 'square-thumbnail', 320, 321, true ); } add_action( 'widgets_init', 'foodie_pro_register_widgets', 11 ); /** * Unregister the default Genesis Featured Posts widget and register all of * our custom Foodie Pro widgets. * * @since 2.0.0 */ function foodie_pro_register_widgets() { require_once FOODIE_PRO_DIR . 'lib/widgets/featured-posts/widget.php'; unregister_widget( 'Genesis_Featured_Post' ); register_widget( 'Foodie_Pro_Featured_Posts' ); } add_action( 'wp_enqueue_scripts', 'foodie_pro_enqueue_js' ); /** * Load all required JavaScript for the Foodie theme. * * @since 1.0.1 * @return void */ function foodie_pro_enqueue_js() { wp_enqueue_script( 'foodie-pro-general', FOODIE_PRO_URI . 'js/general.js', array( 'jquery' ), CHILD_THEME_VERSION, true ); } add_filter( 'body_class', 'foodie_pro_add_body_class' ); /** * Add the theme name class to the body element. * * @since 1.0.0 * @param array $classes Current body classes. * @return array $classes Modified body classes. */ function foodie_pro_add_body_class( $classes ) { $classes[] = 'foodie-pro'; return $classes; } add_action( 'genesis_before', 'foodie_pro_before_header' ); /** * Load an ad section before .site-inner. * * @since 1.0.0 * @return void */ function foodie_pro_before_header() { genesis_widget_area( 'before-header', array( 'before' => '<div id="before-header" class="before-header">', 'after' => '</div> <!-- end .before-header -->', ) ); } add_filter( 'wp_nav_menu_items', 'foodie_pro_primary_nav_menu_social', 10, 2 ); /** * Append a social widget area to the primary menu. * * @since 3.0.0 * @param string $menu The current menu output. * @param array $args The args used for displaying the current menu. * @return string $menu The modified menu output. */ function foodie_pro_primary_nav_menu_social( $menu, $args ) { if ( 'primary' !== $args->theme_location || ! is_active_sidebar( 'nav-social-menu' ) ) { return $menu; } ob_start(); genesis_widget_area( 'nav-social-menu' ); $widget_area = ob_get_clean(); $menu .= sprintf( '<li id="foodie-social" class="foodie-social menu-item">%s</li>', $widget_area ); return $menu; } add_filter( 'wp_nav_menu_items', 'foodie_pro_primary_nav_menu_search', 12, 2 ); /** * Append a search box to the primary menu. * * @since 3.0.0 * @param string $menu The current menu output. * @param array $args The args used for displaying the current menu. * @return string $menu The modified menu output. */ function foodie_pro_primary_nav_menu_search( $menu, $args ) { if ( 'primary' !== $args->theme_location || genesis_get_option( 'nav_extras' ) ) { return $menu; } $menu .= sprintf( '<li id="foodie-search" class="foodie-search menu-item">%s</li>', genesis_search_form( false ) ); return $menu; } add_filter( 'genesis_search_text', 'foodie_pro_search_text' ); /** * Customize search form input box text. * * @since 3.0.0 * @return string Modified Shay Bocks credits. */ function foodie_pro_search_text() { return esc_html__( 'Search', 'foodiepro' ); } add_filter( 'excerpt_more', 'foodie_pro_read_more_link' ); add_filter( 'get_the_content_more_link', 'foodie_pro_read_more_link' ); add_filter( 'the_content_more_link', 'foodie_pro_read_more_link' ); /** * Modify the Genesis read more link. * * @since 1.0.0 * @return string Modified read more text. */ function foodie_pro_read_more_link() { return sprintf( '...</p><p><a class="more-link" href="%s">%s</a></p>', get_permalink(), esc_html__( 'Read More', 'foodiepro' ) ); } add_filter( 'genesis_comment_form_args', 'foodie_pro_comment_form_args' ); /** * Modify the speak your mind text. * * @since 1.0.0 * @param array $args the default comment reply text. * @return array $args the modified comment reply text. */ function foodie_pro_comment_form_args( $args ) { $args['title_reply'] = esc_html__( 'Comments', 'foodiepro' ); return $args; } // Add post navigation. add_action( 'genesis_after_entry_content', 'genesis_prev_next_post_nav', 5 ); // Modify the author says text in comments. add_filter( 'comment_author_says_text', '__return_empty_string' ); add_filter( 'genesis_footer_creds_text', 'foodie_pro_footer_creds_text' ); /** * Customize the footer text * * @since 1.0.0 * * @param string $creds Default credits. * @return string Modified Shay Bocks credits. */ function foodie_pro_footer_creds_text( $creds ) { return '[footer_copyright before="Copyright "] · <a href="https://feastdesignco.com/">Foodie Pro</a> & <a href="http://www.studiopress.com/">The Genesis Framework</a>'; }
tornado
ParticipantI tried but it didn't work. I tried variations also of the hooks and still nothing.
tornado
ParticipantHey Brad.
The Foodie Pro theme has this already in functions.php:
// Add post navigation.
add_action( 'genesis_after_entry_content', 'genesis_prev_next_post_nav', 5 );I actually just now removed the pagination from the two posts I didn't want pagination on using CSS. All good.
My only issue now is that the pagination on all other posts is right at the bottom of the posts, AFTER the After Entry widget, so nobody is going to click them because they are under the After Entry content and so hard to see. How would I move them up above the After Entry widget?
🙂
tornado
ParticipantThanks, Brad. But this only reveals the text as within the .entry-title area. For example, the blog header over the header image reads 'Blog Archives'. I want to remove the word 'Archives' - it makes absolutely no sense that it's there at all. I can remove 'Blog Archives' but I don't want to do that - I want to keep the word 'Blog'.
G
tornado
ParticipantHi.
The above solution does not support the shop page alone having a full width display - only if the full width is applied site wide.
Any ideas how to remove the sidebar completely, only from the Woocommerce product page?
G
tornado
ParticipantBrad - works a treat. Thanks loads for this. Top man.
tornado
ParticipantThanks!!!!!!
tornado
ParticipantThanks, Brad.
I'll attempt to wrap my mind around that. I'm looking at removing the category link so may be a case of deleting reference to that...
🙂
tornado
ParticipantThanks, Ren. Good food for for thought! I appreciate your input.
G
tornado
ParticipantThanks, Brad. That's spot on. Really good site.
Cheers.
G
tornado
ParticipantThanks!!!!!!!!!!
tornado
ParticipantLauren - who's amazing? You're amazing!
Thank you so much for this. So good.
I learnin'!
Could I ask - how do I figure out the ID? I used Firebug before I sent this ticket because I thought it may have something to do with an ID, but couldn't find anything.
Cheers.
Graeme:)
tornado
Participantnunotmp, that is awesome. Thanks. Much cleaner!
I really appreciate this.
The only thing I need now is to make the Header Right widget (where your code is now inserted - in a text widget) to be responsive so it falls below the logo. At the moment the icons show over the logo. Do you have any ideas?
G:)
tornado
ParticipantHey, thanks for the time you've taken to reply. No hate, only love!
Good suggestions. I agree.
However, my client needs the images in place as they are.
I created another post here, asking how I can make images in the Header Right widget (as inserted in a text widget) fall responsively below the logo.
Tom gave a great response to my initial query (how to do the same but for the Simple Social Icons widget) but I still don't know how to address only images in a standard text widget. That would essentially sort part of the problem for me. Maybe I should create a new topic asking this specific question.
I really appreciate your reply.
G:)
-
AuthorPosts