• Resolved braehler

    (@braehler)


    Hey there,

    is it in some way possible to add a div element on pop of the jobs listing template, the page where the [jobs] shortcode is located?
    I tried several things, but when I add the div into the template file, the div element is shown in every job listing on the jobs list page
    Here is a screenshot.
    I need the “Kartendetails” which is the div element right under the grey box, which is the the map, but this is on a staging, so the map is not displayed
    https://snipboard.io/JZcAaq.jpg

    • This topic was modified 3 years, 11 months ago by braehler.
Viewing 9 replies - 1 through 9 (of 9 total)
  • Hi @braehler, easy fix would be not modifying template file, you can easily use gutenberg, editor page from wordpress and add your own html code to it on top of [jobs] shortcode.

    Hope that answered your question.
    Sincerely
    Wally.

    Thread Starter braehler

    (@braehler)

    @inempleo
    at first: thanks for the reply.
    doing this with gutenberg editor is not the way I want it. I tried editing the page where the shortcode is located and inserting my HTML, but with this, I just get the div element on top of the map.
    I need it between the map and the jobs list.
    Any ideas where to locate this in the template?

    Hi @braehler, yes there is a solution, but you need to override the template file, and search for job filter php file and in that file you can insert your div tag.

    Please before touching anything backup your site first.

    More detail about override template
    https://wpjobmanager.com/document/template-overrides/

    Kind regard
    Wally

    Thread Starter braehler

    (@braehler)

    @inempleo
    I know I need to override the template, and I tried this as well.
    But when I insert the div and the class for the button, the button (which is a pop up button via pure css and html) the button is displayed in every job listing in the list view, as you can see in the screenshot.
    Don′t know why this is hapening. Any ideas?

    Hi @braehler, as to my understanding you like to show it on top under the map, but only show it one time not in a loop?

    Thread Starter braehler

    (@braehler)

    @inempleo
    yes, I just need it once under the map, not in the loop

    Plugin Support bindlegirl (a11n)

    (@bindlegirl)

    Hi @braehler !

    Unless the theme you are using has already added some customized templates, the file you are looking for is job-listings-start.php. You need to add the button right above the <ul class="job_listings">.

    Does that help?

    Thread Starter braehler

    (@braehler)

    @bindlegirl

    thanks a lot, that was exactley the template I was looking for

    Plugin Support bindlegirl (a11n)

    (@bindlegirl)

    I’m happy it worked ??

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Add a div on top of the job listing page’ is closed to new replies.