• Resolved aevalon

    (@aevalon)


    Hey all,

    I’m hoping anyone could provide some insight on something I’m having trouble with.
    I’m in the process of redesigning a website (mostly visually) using Elementor and i’ve made quite a bit of progress, however as far as I can tell, most of the original website was designed with php, and all of the page styling is built into it’s custom-made theme.

    In the process of redesigning, i’ve just started fresh with a new theme and designed things from scratch, but now I’ve run into a problem. The original theme had some sort of customization for its posts from the admin panel on the dashboard, and now in my new theme it has obviously disappeared. The custom version looks like this:
    Custom posts

    These custom posts also have forms inside them for adding new details (like the names etc for new members, or details for the event), and they have their own pages within their section so there isn’t a huge clutter on the actual ‘Pages’ section of the dashboard.

    Example of custom form inside post

    At this point i’m not quite sure how to proceed, I’m not sure if it would be better to go back to the old theme and try redesign things via Elementor, but then there are obviously problems with the html styling clashing, or if there is perhaps some way to copy over these custom posts to a new theme without causing too much conflict.

    I’m obviously not as savvy with coding as the original designer, so if anyone has some advice on what would be the simplest way for me to go about this it’d be greatly appreciated.

    • This topic was modified 5 years ago by aevalon.
Viewing 4 replies - 1 through 4 (of 4 total)
  • catacaustic

    (@catacaustic)

    The best thing ot do is find out how the custom post types are being defined, and add that into your theme. That way you’ll have everything moved across and you can do what you need to with it. The only bad part is that this may take a fair bit of idgging into code to see how things actually work.

    Thread Starter aevalon

    (@aevalon)

    Thanks for the reply, do you perhaps know which php files are relevant to custom posts? I’m not averse to digging around into code, but i’m not sure which of the files relate to CPT’s and some of them are thousands of lines long so i dont really know where to begin.

    Moderator bcworkz

    (@bcworkz)

    Those CPTs are from the other theme? If so, look in its functions.php to start. There could be include or require statements within that load in other code pages, often in an /inc/ or /include/ subfolder. You’ll need to search those files too. And the included files could have their own include statements leading to other files.

    Another approach is to use grep or similar multi-file text search utility to find all occurrences of register_post_type in the theme’s folders.

    Thread Starter aevalon

    (@aevalon)

    Okay great, time to start digging.
    Thanks so much for all the help, I really appreciate it.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Advice regarding custom posts/theme’ is closed to new replies.