Manually add add listing button

  • Author
    Posts
  • mik256

    Hi,
    there’s a button “add listing” at the top of the page. That’s ok, but I want to make it appear as big picture at the main page.
    How can I place make “add listing” link appear somewhere at the page?

    ihordeveloper

    Hi,

    This button has a static URL, something like example.com/submit-listing So you can add a custom button to the header section (there’s a button block available in the editor), and link it to this URL.

    mik256

    You are right! Excellent. It didn’t work because I had the page set up as listing page- this seem to override everything. One more thing- how can I make this add listing button pre-select a category? I mean- my point is to make 2 buttons, one for add listings to category A, the other one for add listings to category B.
    Thanks!

    mik256

    Sorry, forget it, I got it, target url need to be like /submit-listing/category/12247/
    Great!

    mik256

    Any chance to make urls friendly in add listings? For instance /submit-listing/category/cat1/ instead of /submit-listing/category/12247/?
    URL name in category settings doesn’t seem to work for that.
    Thanks

    ihordeveloper

    Unfortunately there’s no such option, HivePress fetches category IDs instead of slugs, but this page will not be indexed by search engines so it doesn’t affect SEO (it’s available to logged in users only).

    mik256

    Ok, nevermind. One last thing- I want to have my initial page showing contents of /submit-listing/category/. I mean to immediately let user select category and add listings without need to click add listing button. Is this possible?
    Thanks

    ihordeveloper

    Unfortunately there’s no way to do that because this page requires an account, so there will be a redirect for guest users, or an empty page. At the moment static pages (like the listing submission page) can’t be selected as a front page, WordPress lists only non-static pages in the drop-down in Settings/Reading section.

    You can consider using the front page as a landing page with a large call-to-action “Add Listing” button.

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

You must be logged in to reply to this topic.

Subscribe

Sign In

Don't have an account? Register

Forgot password?

Register

Already have an account? Sign In

Forgot password?

Reset Password

Please enter your username or email address, you will receive a link to create a new password via email.