Forum Replies Created
-
AuthorPosts
-
Brad DaltonParticipant
Try activating the 2022 theme and see if that fixes the problem once you update wordpress.
Brad DaltonParticipantFebruary 13, 2023 at 1:49 am in reply to: Removing the number of comments shown at top of post #506756Brad DaltonParticipantCheck the shortcode parameters for post_comments. https://studiopress.github.io/genesis/basics/genesis-shortcodes/
If it can't be done using the shortcode, you may need to modify the PHP using a filter hook or possibly use CSS to hide the count.
Brad DaltonParticipantThere's a function for this on line 65 in functions.php which you can remove.
February 11, 2023 at 7:08 am in reply to: Essence Pro: How to setup URL/site structure & edit form field spacing #506749Brad DaltonParticipantBrad DaltonParticipantThere are many filter hooks you can use to modify the comment form in Genesis child themes.
January 18, 2023 at 11:15 pm in reply to: Error on Lifestyle Pro site – how to fix and can I no longer use this theme #506598Brad DaltonParticipantWhat version are you running?
Looks like the error may relate to custom code you have added to your functions file not default child theme code.
January 13, 2023 at 9:50 am in reply to: :first-of-type / :last-of-type – not isolating individual element #506571Brad DaltonParticipantHere's 3 ways to use pseudo-classes to style the 1st nav menu item in Genesis child themes.
January 5, 2023 at 8:29 am in reply to: How to set global site background and text colors in Genesis Framework #506515Brad DaltonParticipantI think you might have the wrong selector class. Test it in your browser first but this might help. https://wpsites.net/genesis-tutorials/changing-the-primary-navigation-colors-in-studiopress-themes/
January 4, 2023 at 10:23 pm in reply to: How to set global site background and text colors in Genesis Framework #506510Brad DaltonParticipantBrad DaltonParticipantJanuary 4, 2023 at 4:40 am in reply to: The parent theme could not be found. You will need to install the parent theme, #506503Brad DaltonParticipantMake sure genesis is installed https://www.studiopress.com/get-genesis/
December 31, 2022 at 2:55 am in reply to: Move homepage image above the text on the mobile version of the site? #506474Brad DaltonParticipantYou can use CSS with media queries to reposition the image before the title when mobile responsive.
@media only screen and (max-width: 860px) { /* Your CSS */ }
You will need to write the CSS which requires some work at your end.
Brad DaltonParticipantI checked the theme folder and there's a template named Landing
Template Name: Landing
You can select the Landing page template using the Template link on the Edit Page screen when using Gutenberg. I did test this right now.
Brad DaltonParticipantThe filter for the post title is different than the filter for the site title.
Here's an example however please note, there's other filter hooks for the post title https://gist.github.com/Lego2012/4624f25e7bc0f1f69ec060f5facc61cb
In genesis > lib > structure > post.php, you'll find this code
add_action( 'genesis_entry_header', 'genesis_do_post_title' ); /** * Echo the title of a post. * * The
genesis_post_title_text
filter is applied on the text of the title, while thegenesis_post_title_output
* filter is applied on the echoed markup. * * @since 3.1.0 Suppress output if “hide title” checkbox is ticked. * @since 1.1.0 * * @return void Return early if the filtered trimmed title is an empty string. */ function genesis_do_post_title() { if ( ! is_home() && genesis_entry_header_hidden_on_current_page() ) { return; } $title = apply_filters( 'genesis_post_title_text', get_the_title() ); if ( '' === trim( $title ) ) { return; } // Link it, if necessary. if ( ! is_singular() && apply_filters( 'genesis_link_post_title', true ) ) { $title = genesis_markup( [ 'open' => '', 'close' => '', 'content' => $title, 'context' => 'entry-title-link', 'echo' => false, ] ); } // Wrap in H1 on singular pages. $wrap = is_singular() ? 'h1' : 'h2'; // Also, if HTML5 with semantic headings, wrap in H1. $wrap = genesis_get_seo_option( 'semantic_headings' ) ? 'h1' : $wrap; // Wrap in H2 on static homepages if Primary Title H1 is set to title or description. if ( is_front_page() && ! is_home() && genesis_seo_active() && 'neither' !== genesis_get_seo_option( 'home_h1_on' ) ) { $wrap = 'h2'; } /** * Entry title wrapping element. * * The wrapping element for the entry title. * * @since 2.2.3 * * @param string $wrap The wrapping element (h1, h2, p, etc.). */ $wrap = apply_filters( 'genesis_entry_title_wrap', $wrap ); // Build the output. $output = genesis_markup( [ 'open' => "<{$wrap} %s>", 'close' => "</{$wrap}>", 'content' => $title, 'context' => 'entry-title', 'params' => [ 'wrap' => $wrap, ], 'echo' => false, ] ); echo apply_filters( 'genesis_post_title_output', $output, $wrap, $title ) . "\n"; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- title output is left unescaped to accommodate trusted user input. See https://codex.wordpress.org/Function_Reference/the_title#Security_considerations. }
Brad DaltonParticipantBrad DaltonParticipantUnderstand. Varies depending on which editor you choose. For blocks, find Page Attributes on the Edit Page screen.
I just checked and its there in pretty much the same place.
Brad DaltonParticipant1. Please clarify
2. You can use the genesis_seo_title filter with the is_front_page() conditional tag.
Example https://gist.github.com/cdils/9002451
Brad DaltonParticipant1. The landing page template can be selected using the Page Attributes box on any Edit Page screen.
However
2. If you want to use the template on single posts, you'll need to modify the page template header.
December 15, 2022 at 6:55 am in reply to: Social Icons on the top-right corner – Either as a part of Menu or directly? #506360Brad DaltonParticipant -
AuthorPosts