• Resolved user10522three

    (@zorrohere)


    Hi,

    I am using same header and footer throughout my theme, at this moment two templates from your theme are being used archive-jobpost.php and single-jobpost.php.

    Single jobpost template works fine but on archive jobpost template it wraps footer inside your main wrapper div with default id of container. I compared both templates but I didn’t find any difference. I tried default themes and on both templates, footer is placed at different positions. Do you have any missing closing tags when archive template is being used?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter user10522three

    (@zorrohere)

    After eliminating div elements one by one I came across the issue in grid view,

       <!-- start Jobs Listing: List View -->
        <div class="grid-view">        
        <div class="row">
    
        </div> <!-- end Jobs Listing: List View -->

    You can see that one closing tag is missing, I also change view to list view and list view works fine, will be great if you tell me where I can add this missing tag to fix the issue.

    Plugin Author PressTigers

    (@presstigers)

    Hello @zorrohere,

    It seems that you are experiencing this issue due to your theme’s structure. Sometimes divs opening in the header are closed in other pages like content part and remaining are in the footer. So, in this case, content part is job listing and closing div has first taken from job listing independent of any view either grid or list.

    We have also taken a look at this issue but SJB is having closing divs for all opening structures.

    Please make sure this issue by counting the number of opening divs in the header file and then closing div in footer file. Hope you will get the missing part.

    Thank you!

    Regards,
    PressTigers

    Thread Starter user10522three

    (@zorrohere)

    Hi,

    I have only 1 opening tag in header and 1 closing tag in footer. Things that I have tested are,

    1. My theme is consistent throughout site.
    2. Theme is consistent while viewing single job post.
    3. Theme is consistent while viewing archived job posts in list view settings.
    4. It shows problem while viewing archived job posts in grid view and I have also traced back to the missing closing div as i have replied previously.
    5. I am not overriding any template so far in my theme.

    Now coming to other themes,
    Twenty Fifteen
    1. While viewing archived posts, footer is contained in div with id content.
    2. While viewing single job post footer is outside of div with id content.
    3. Following is the result of missing div tag I reached after eliminating each pair of opening and closing div tags.

    <!-- start Jobs Listing: List View -->
        <div class="grid-view">
            
        <div class="row">
    
        </div> <!-- end Jobs Listing: List View -->

    Twenty Sixteen

    1. While viewing archived job posts, footer is contained in div with class site-inner.
    2. While viewing single job post, footer is contained in div with class site-inner as well.
    3. After eliminating you can see there is still missing closing tag,

    <!-- start Jobs Listing: List View -->
    <div class="grid-view">
    <div class="row">
    
     </div> <!-- end Jobs Listing: List View -->

    Twenty Seventeen
    1. While viewing archived job posts, footer is contained by div with id of content.
    2. While viewing archived job posts, footer is contained by div with class of site-content-contain.
    3. Again missing closing tag,

    <!-- start Jobs Listing: List View -->
        <div class="grid-view">        
        <div class="row">
    
        </div> <!-- end Jobs Listing: List View -->

    If that’s not enough, Just let me know at what part you add this div with class row so I can just edit it myself

    Plugin Author PressTigers

    (@presstigers)

    Hello @zorrohere,

    The template which is problematic regarding closing div, please override that template into your child theme as hooks are available for templating.

    For job listing page, are you using job archive page or listing through shortcode? If through shortcode then change the slug of the Jobpost slug from Job Board> Settings> General. So job page do not get a conflict with each other.

    Thanks & Regards,
    PressTigers

    Thread Starter user10522three

    (@zorrohere)

    I will see what suits me best and will contact you if required. Thanks a lot.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Missing closing div tag in archive-jobpost.php’ is closed to new replies.