Site logo

[Support request] How to add text area for tag and categories?

Home Forums Support [Support request] How to add text area for tag and categories?

Home Forums Support How to add text area for tag and categories?

Viewing 15 posts - 1 through 15 (of 23 total)
  • Author
    Posts
  • #1950533
    Anna

    Hello. How I can add text area before footer for tags and categories? For example: here I mean
    I need create simple classifieds and need text area how like here I mean here

    If possible write me step by step guide how to create this is…

    Sorry for my poor English

    Best Regards
    Alena

    #1950589
    David
    Staff
    Customer Support

    Hi there,

    you can use a Block Element:

    https://docs.generatepress.com/article/block-element-overview/

    Add your content in the Block Element editor.

    Then set the Hook to: after_main_content
    See here for reference: https://docs.generatepress.com/article/hooks-visual-guide/#posts-page

    Then set the Display Rules to the Locations you want it displayed. If its for the whole site then use the Entire Site

    #1950614
    Anna

    Dont work…. Check pls where I was wrong?

    1

    2

    3

    Thanks

    #1951028
    David
    Staff
    Customer Support
    #1969607
    Anna

    Thanks. Done!

    Done

    What now wrong?

    #1969809
    David
    Staff
    Customer Support

    You need to add the content you want displayed where it says ‘Type / to choose a Block’.
    If you want that to be the Category Description then choose the GP Dynamic Content Block, and set it to Term Description.

    #1969823
    Anna

    I found my mistakes:

    1. I was wrong and create Hook (now change on Loyalot)
    2. Customize sidebars and put widgets/

    All work! This is fantastic! https://rabotnica.tempurl.host/zimbabve/ Thanks

    Still one issue. Now Description category in top before posts.

    Now position

    But I want after posts and before footer.

    #1969870
    David
    Staff
    Customer Support

    Which Hook are you using in the Element ?

    #1970199
    Anna

    Maybe will easy if you check? pls

    [redacted for user’s security.]

    This is test site, you can do any you wanted, if you need.

    Sorry for my poor English

    #1970254
    Elvin
    Staff
    Customer Support

    Hi Anna,

    Still one issue. Now Description category in top before posts.

    That part you’re pointing to is the default layout for archive page title and description.

    It’s this one – https://github.com/tomusborne/generatepress/blob/2c7c8a76d3b58b0b97e82b3a7a5ebf022a1ddfbe/inc/structure/archives.php#L94-L117
    https://share.getcloudapp.com/xQujvBzl

    Are you trying to remove it? Or perhaps move it elsewhere? Let us know.

    #1971406
    Anna

    Not delete. I wanted move this is text area down page, after posts.

    #1971418
    Elvin
    Staff
    Customer Support

    I see,

    Try adding this PHP snippet.

    add_action( 'wp', function() {
        remove_action( 'generate_after_archive_title', 'generate_do_archive_description' );
    
        if ( is_archive() ) {
        add_action( 'generate_after_main_content', 'generate_do_archive_description' );
        }
    } );

    This PHP snippet removes the taxonomy description from its default position and adds it back to the bottom of the content area.

    Here’s how to add PHP snippet – https://docs.generatepress.com/article/adding-php/

    #1972059
    Anna

    added as mu-plugin

    mu plugin

    https://rabotnica.tempurl.host/category/zimbabve/ description down. this is good. But I found two issues:

    1. Old posts urls are broken/ You can click on everyone post and check.
    2. How I can add here text editor?

    text editor

    How like this is

    Text redactor

    #1972227
    Leo
    Staff
    Customer Support

    Is the original topic resolved?

    If so can you open topics for the new questions?

    Thanks.

    #1979139
    Anna

    Not resolved. Not adaptive for mobile. Not have title and author place not nice.

    https://rabotnica.tempurl.host/category/zimbabve/

    Not nice

    You have different authors who created themes for sites library. Maybe someone can created simple theme jobposting? I need how like this is theme https://rabotnica.tempurl.host/ but category and have text area in down page for SEO texts.

    And simple form for create classified http://ddo.com.ua/addmsg/nedv/80/

    Not more.

Viewing 15 posts - 1 through 15 (of 23 total)
  • You must be logged in to reply to this topic.