[gd_post_title]

This topic contains 7 replies, has 3 voices, and was last updated by  Alex Rollin 4 years, 9 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #501976

    Stephane
    Expired Member
    Post count: 27

    Hello

    I would like to automatically add the title in the page, in h2.

    Example :
    Where can I find[gd_post_title]?

    So I added in GD Details:
    <h2>Where can I find[gd_post_title]?</h2>

    However, he considers that there are 3 hours2:
    1. Where can I find
    2. [gd_post_title]
    3. ?

    How to integrate[gd_post_title] without it being formatted?

    Regards

    #501981

    Kor
    Moderator
    Post count: 16516

    Hi Stephane,

    Thanks for your post. You can using [gd_post_meta key=”post_title” css_class=”myclass”] as explained here and see if it works for you. https://wpgeodirectory.com/docs-v2/geodirectory/design-elements/#gd_post_meta

    #501986

    Stephane
    Expired Member
    Post count: 27

    Hi Kor

    I’m sorry but it doesn’t work.
    gd_post_meta key=”post_title” or gd_post_title are still in a h2

    #502032

    Alex Rollin
    Moderator
    Post count: 27815

    You will need some additional HTML and CSS to force the title to display inline with other elements. Your theme is probably setting the H2 as a block with width 100%. You would need to override that for your custom HTML and CSS.

    Here’s an example: https://wpgeodirectory.com/docs-v2/faq/common-examples/#flex

    #502289

    Stephane
    Expired Member
    Post count: 27

    Hello

    Is it possible to add css for all post_type=gd_place?

    I would like to modify the header apparence for all type of gd posts.

    #502336

    Alex Rollin
    Moderator
    Post count: 27815

    That should be added automatically to the body tag.

    Check using the inspector in the body tag.

    https://wpgeodirectory.com/docs/customizing-your-style/

    You will see something like

    
    
    
    <body class="gd_place-template-default single single-gd_place 
    postid-43 logged-in admin-bar geodir_custom_posts geodir-page 
    geodir-post-cat-4 gd-pkg-id-1 sd-common sd sd-right-sidebar 
    gd-map-google gd-google-maps customize-support">
    

    So you can use CSS like

    
    
    
    body.single-gd_place {
        filter: blur(3px);
    }
    

    hope that helps

    #502455

    Stephane
    Expired Member
    Post count: 27

    Thx a lot 🙂

    #502488

    Alex Rollin
    Moderator
    Post count: 27815

    Excellent! 🙂

Viewing 8 posts - 1 through 8 (of 8 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket