[Resolved] Unhook the default post Title when using an element

Home Forums Support [Resolved] Unhook the default post Title when using an element

Home Forums Support Unhook the default post Title when using an element

  • This topic has 5 replies, 3 voices, and was last updated 2 months ago by Neil.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #2010663
    Neil

    Apologies of this has been answered before but looking through the forum I couldn’t find a solution.

    I am using a new block element header on all blogs posts that will show the Post Title nicely styled in the GB Container => GB Heading; However I can’t find a way to completely disable to normal Post Title that is then shown in the content below and thus duplicating the <h1> on the page.

    Do you have a hook that could remove this from all posts?

    Screenshot of duplicate header

    #2010898
    David
    Staff
    Customer Support

    Hi there,

    if you set the Block Element – Element Type to Page Hero then it will provide you some additional options including disable title:

    https://docs.generatepress.com/article/block-element-page-hero/#disable-title

    #2010914
    Neil

    AH. Genius. Thank you. 👍

    #2010919
    David
    Staff
    Customer Support
    #2011780
    Heath

    Neil, how did you get that nice looking header?

    #2012007
    Neil

    @Heath Here you go….

    <!-- wp:generateblocks/container {"uniqueId":"4f922b59","paddingTop":"140","paddingRight":"20","paddingBottom":"75","paddingLeft":"20","gradient":true,"gradientDirection":120,"gradientColorOne":"#9b2c98","gradientColorOneOpacity":0.7,"gradientColorStopOne":30,"gradientColorTwo":"#a2ad00","gradientColorTwoOpacity":0.7,"gradientColorStopTwo":70,"gradientSelector":"pseudo-element","bgImage":{"id":41,"image":{"url":"https://ch.devwebsite.uk/wp-content/uploads/2021/10/Green-Leaf-Background.jpg","height":1921,"width":1559,"orientation":"portrait"}},"bgOptions":{"selector":"pseudo-element","opacity":1,"overlay":false,"position":"center bottom","size":"cover","repeat":"no-repeat","attachment":""},"zindex":0,"innerZindex":3,"align":"full","shapeDividers":[{"shape":"gb-waves-1","color":"#ffffff","colorOpacity":1,"location":"bottom","height":120,"heightTablet":"","heightMobile":"","width":100,"widthTablet":"","widthMobile":"","flipHorizontally":true,"zindex":2}],"isDynamic":true,"blockVersion":2} -->
    <!-- wp:generateblocks/grid {"uniqueId":"8ffbe09d","columns":1,"horizontalGap":100,"verticalGapTablet":60,"horizontalAlignmentTablet":"center","isDynamic":true,"blockVersion":2} -->
    <!-- wp:generateblocks/container {"uniqueId":"429be241","isGrid":true,"gridId":"41ebb0d8","width":55,"widthTablet":90,"widthMobile":100,"paddingTop":"0","paddingRight":"0","paddingBottom":"0","paddingLeft":"0","alignment":"left","isDynamic":true,"blockVersion":2} -->
    <!-- wp:generateblocks/headline {"uniqueId":"75651ca0","element":"h1","textColor":"#ffffff","gpDynamicTextType":"title","gpDynamicTextReplace":"Hello World"} -->
    <h1 class="gb-headline gb-headline-75651ca0 gb-headline-text">Hello World</h1>
    <!-- /wp:generateblocks/headline -->
    <!-- /wp:generateblocks/container -->
    <!-- /wp:generateblocks/grid -->
    <!-- /wp:generateblocks/container -->
Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.