• Resolved ic3cold

    (@ic3cold)


    hi Merv,

    Your plugin is excellent, although I am having a hard time trying to find actions to work as expected:
    1. In the new version on the files that are provided for the child theme, in my case Sydney, I could only find single_listing.php and that calls just a single action <?php do_action( ‘epl_property_single’ ); ?> Well I was able to trace that in template-functions.php and it calls epl_single_template, but I wasn’t able to find that action(function), anywhere … Because if I add content_listing_single.php to the child theme, it does nothing, as this file isn’t mentioned in your documentation FAQ(outdated?), I don’t know if they work together or not, or one needs to be removed, I found easier the method to just move actions around like the documentation says … but if just modified content_listing_single.php on my child theme, nothing happens, it’s either single_listing.php has a priority or I’m doing something wrong. BTW If I turn of compatibility in settings it adds a post on top of the template and messes up the whole thing …
    2. This is a css question as if add the search widget, to the sidebar it messes all content as the characters are too big, therefore pushes content around ending up in a mess, so what class and where I can override it, to fix this?https://www.easyfastrental.com/property/cascade-doral-new-construction/
    3. It seems the FAQ is outdated as I couldn’t find some of the file names, they are either replaced or not there like this >> content-property-meta.php there’s content-epl-property-meta.php

    • This topic was modified 4 years, 6 months ago by ic3cold.
Viewing 1 replies (of 1 total)
  • Plugin Author Merv Barrett

    (@mervb1)

    Hi ic3cold,

    1. In the new version on the files that are provided for the child theme, in my case Sydney, I could only find single_listing.php and that calls just a single action <?php do_action( ‘epl_property_single’ ); ?>
    — did you grab the Sydney template here:
    Sydney theme templates
    Sydney DEMO.
    — (should work but it is not just the hook in that file)
    — See Theme Setup for more detail, process unchanged.

    Well I was able to trace that in template-functions.php and it calls epl_single_template, but I wasn’t able to find that action(function), anywhere … Because if I add content_listing_single.php to the child theme, it does nothing, as this file isn’t mentioned in your documentation FAQ(outdated?), I don’t know if they work together or not, or one needs to be removed, I found easier the method to just move actions around like the documentation says … but if just modified content_listing_single.php on my child theme, nothing happens, it’s either single_listing.php has a priority or I’m doing something wrong. BTW If I turn of compatibility in settings it adds a post on top of the template and messes up the whole thing …
    — With the single-listing.php and archive-listing.php the hooks just need to appear within the loop.
    — Single Hook: <?php do_action( ‘epl_property_single’ ); ?>
    — Archive Hook: <?php do_action( ‘epl_property_blog’ ); ?>
    — These work like get_template_part functions.

    — End file should look like: Single / Archive.
    Easiest it copy sydney archive.php and single.php and rename to archive-listing.php and single-listing.php in these files replace:

    Archive:
    Replace
    get_template_part( ‘content’, get_post_format() );
    with
    do_action( ‘epl_property_blog’ );

    Single
    Replace
    <?php // get_template_part( ‘content’, ‘single’ ); ?>
    with
    <?php do_action( ‘epl_property_single’ ); ?>

    — Can you provide an updated version for us to re-generate the templates.

    2. This is a css question as if add the search widget, to the sidebar it messes all content as the characters are too big, therefore pushes content around ending up in a mess, so what class and where I can override it, to fix this?https://www.easyfastrental.com/property/cascade-doral-new-construction/
    — We provide minimal CSS to the all elements so that it better integrates with the theme css. (can only see search in footer, looks good there)

    3. It seems the FAQ is outdated as I couldn’t find some of the file names, they are either replaced or not there like this >> content-property-meta.php there’s content-epl-property-meta.php
    — Possibly outdated. content-property-meta.php (where did you see this reference?)
    — Updated
    Docs
    Codex
    GitHub
    Snippet Library

Viewing 1 replies (of 1 total)
  • The topic ‘Problems trying to move gallery and others using Gutenberg’ is closed to new replies.