parrker
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Adding a new payment method?Oh, great! Thanks a lot!
I was getting myself ready to hack the core plugin code 🙂
Forum: Hacks
In reply to: One-page AJAX-based website. How should I do it?Still, thanks a lot for your response! It is very helpful to know somebody’s take on a problem you tackle for the first time, and I felt like maybe I was missing an obvious solution. Thank you!
Forum: Themes and Templates
In reply to: Need To Remove This FooterYou are welcome!
Forum: Hacks
In reply to: One-page AJAX-based website. How should I do it?This is certainly an option: to replace the content in existing div blocks with something you get from an Ajax call. My question though was more about the organisation of proper architecture of such calls.
For now, to load more blog posts I create an action that will run a WP_Query with certain params (paged, posts_per_page, etc.) and return a JSON string of the result of that query. To load a single post (e.g., when the Read More link is clicked), I can pass a post ID to the same function, to get any sort of archive or category page I’ll pass and handle a corresponding parameter as well. I probably need to grab comments for a single post too.
Do you think this is an acceptable way of approaching this?
Forum: Themes and Templates
In reply to: Need To Remove This FooterSo, have you tried deleting the whole
<div id="footer-wrapper">...</div>chunk of code?If you are after the block just below (with copyrights and stuff), you need to find a file with
<div id="bottom-wrapper">...</div>code.Great! Thank you very much for your answer. I really like the plugin, and I wish all the best to you!