Custom Child Theme?

This topic contains 5 replies, has 3 voices, and was last updated by  Stiofan O’Connor 10 years, 3 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #9724

    Evan Burrows
    Buyer
    Post count: 18

    Hello,

    I’m using my own custom theme for this, and I was wondering if there was a way to keep the plugin template files styled, without being overwritten when I update the plugin.

    Like, I’m looking for a way to child theme the plugin if that makes sense.

    Would love some help on this, thanks!

    #9745

    Guust
    Moderator
    Post count: 29970

    Not too sure what you’re asking.
    If you want to style the GD pages, you would just add the relevant CSS to your (child) theme’s style.css files.
    That will not get changed by any updates.

    Can you clarify your question? Thanks.

    #9880

    Evan Burrows
    Buyer
    Post count: 18

    I would like to do a bit more of inDepth customization. Like I’ve added my own side menu/sidebar and custom wrappers and such.

    So what I’m saying is, I have changed the actual pages like listing-detail.php…and I am wondering if there is a way to make a child version of the plugin where I can stick my new version of listing-detail.php and have it override the default version when it updates itself.

    #9883

    Guust
    Moderator
    Post count: 29970

    You can create a geodirectory folder in the child themes folder, where you keep your changed GD templates.

    https://wpgeodirectory.com/support/search/?bbp_search=Geodirectory+folder

    #11385

    Evan Burrows
    Buyer
    Post count: 18

    Okay, I’ve got that working well. Just a but of an issue with overriding a few files.

    I had to make modification to the popular posts widget to make it rotate through entries. Here are the modified files:

    1) geodirectory_popular_widget.php

    2) I duplicated listing-listview.php and made it listing-listview2.php so I could call in this rotating functionality only in geodirectory_popular_widget.php

    The problem is, when I put these in themes_root/geodirectory like the other templates, they don’t override the root plugin.

    Here is the website if needed: http://bit.ly/1ovLuIT

    #11396

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hi Evan,

    #1 Just copy the widget function to your child theme and rename it and you will add your own new widget you can use.

    #2 easy if you follow #1

    Thanks,

    Stiofan

Viewing 6 posts - 1 through 6 (of 6 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