Move the Add Listing button

Bonjour j’aimerai savoir comment modifier le header pour déplacer le bouton de **‘ajout annonce / add listing **’ pour le mettre dans une autre section
Merci d’avance


Hello, I would like to know how to modify the header to move the ‘addition announcement / add listing’ button to put it in another section
Thanks in advance

Please, specify where you’d like to move the “Add Listings” button.

P.S.: we’d be grateful if you wrote your questions in English, e.g., using Google Translate, this way, they may be helpful to some other users on our forum.

thanks for the answer
I would like to move the ‘add listing’ button to another page (category)

Let me know if you mean showing it in the same header section but on the category pages only, or hiding it completely and showing it somewhere in the category page content? The latter one would require code customizations.

You can also add this button to any custom page in WordPress/Pages by using the Button block and this URL:

/submit-listing

It always links to the listing submission page.

2 Likes

I just tested it and it works, thank you /
I have another question :sweat_smile: => I want to remove it from the header now

let me reformulate plz I use 3 categories to make ads… Now I want the user to be able to make free ads with the two categories without logging in but for the 3rd I want him to log in (subscribe) to be able to post.

I want to know how to do that because in my site as soon as we want to make an ad it imposes a connection (login or registration) or I want this restriction only on one category

how to bypass?

You can hide the header button this way:

.hp-menu--site-header .hp-menu__item--listing-submit {display:none}

But moving buttons from header to category pages will not restrict users to adding listings to these categories only. I recommend keeping this button in the header section and using Paid Listings extension instead, this way you can add listing packages (even free ones) and assign them to categories you want to restrict. Please note that registering at least basic user account is required for adding any listing in HivePress.

Hello, I hope you are well? Thanks for the solution, it works well!

.hp-menu--site-header .hp-menu__item--listing-submit {display:none}
*
/submit-listing

is there for example a document that contains all these codes?

We have a collection of code snippets here Search · user:hivepress · GitHub Also, if you’re familiar with CSS basics you can use the browser inspector tool to check the element’s CSS class and hide or restyle it easily.

:sweat_smile: :sweat_smile:
the last thing I have to do is this==> my site must be in French since the code of hivepress is in English==> I would like to be able to translate the page automatically.

in the image you see the attributes are in English but I would like to know if there is the possibility that it is displayed directly in French
when I try to modify the label in the css code it doesn’t display anymore

Sure, please try using Loco Translate for this purpose How to translate HivePress - HivePress Help Center Code changes are not required in this case because all the texts in the code are wrapped with translation functions so they are available in Loco Translate.

Hi the solution worked well, thank you!
Is it possible to validate a registration as we validate listings?

Hi the solution worked well, thank you!
Is it possible to validate a registration as we validate listings? and to be able to list the names of all registered users??? via a db

Currently, there’s no moderation for regular user registrations, but it’s possible for vendors - if you reject the first listing of a user, then they will not get a vendor profile; this way, you can decide which users can become vendors. You can check a list of users in the WordPress/Users section.