Editing template HTML

This topic contains 2 replies, has 2 voices, and was last updated by  Paolo 9 years, 1 month ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #132709

    Peter Pocrnich
    Expired Member
    Post count: 15

    Hi,

    everything can be done via filters (hooks) and actions in your functions.php file.

    To be able to answer to your question, I’d need to know what you want to achieve.

    The html of the search result is the same template of the archive pages and can be found in listing-listview.php

    Please submit in the support forum any other similar questions.

    Thank you,

    The GeoDirectory Team

    On Wed, Mar 2, 2016 at 3:58 PM, Mark Mintler – etech <[email protected]> wrote:
    Thank you for your help on custom templates. We’re running into an issue.. we created a new directory in our child theme per your site instructions and they do override the files in the plugins folder. So far so good.
    However we can’t figure out how to actually edit the html in these templates. We successfully added a div around the code in order to set page width etc.. so it fits in our current template.

    However, using the files inside the child theme folder we can’t actually get to the html layouts of these pages. For example, the geo-search code page looks like this..
    ###### MAIN CONTENT WRAPPERS OPEN ######
    /** This action is documented in geodirectory-templates/add-listing.php */
    do_action(‘geodir_wrapper_content_open’, ‘search-page’, ‘geodir-wrapper-content’, ”);

    ###### MAIN CONTENT ######
    /**
    * Calls the search page main content area on the search template page.
    *
    * @since 1.1.0
    */
    do_action(‘geodir_search_content’);

    ###### MAIN CONTENT WRAPPERS CLOSE ######
    /** This action is documented in geodirectory-templates/add-listing.php */
    do_action(‘geodir_wrapper_content_close’, ‘search-page’);

    the code CALLS other files inside the plugins folder. How so we modify those files without having issues when you update the software?

    As an example we want to move the breadcrumbs from the entry header to the content wrapper.

    #132745

    Peter Pocrnich
    Expired Member
    Post count: 15

    Above is an email thread we had.. i am reposting in forums.

    Im confused as to how I can edit html in a functions file.

    So just to start we want to move the breadcrumbs “hook” into a different div from where it currently exists.

    the geodir-breadcrumb div and breadcrumbs UL is currently above the bodywrap. I want to move it into the body wrap.

    This is just one example – maybe once you explain this to me I’ll get the concept of how your pages are constructed.

    Also how do i modify the functions.php file without it being overwritten by an update? functions.php was not one of the template files we copied into the child theme.

    Thanks

    #133258

    Paolo
    Site Admin
    Post count: 31211

    Hi,

    changes must be made via functions.php of your active theme (possibly a child theme).

    For breadcrumbs this is how you would proceed.

    https://wpgeodirectory.com/support/topic/hide-breadcrumbs-from-page/#post-53460

    Let us know if that points in the right direction.

    Thanks

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

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount