Posted - 03/27/2018 : 20:31:23
We are testing integration of our ECT site with Wordpress, and have purchased replacement software for ECT WordPress integration with the ECT Styles theme. I have installed everything according to the installation instructions for the main ECT files (products.php, cart.php, etc) and all is going really well. We already had a number of "static" pages on our site (quite a few, actually), one of which was index.php, the landing page we would like to use in our new site once migrated to using Wordpress. I have managed to alter this index.php file on our WP test site so that it utilises the WP includes, etc, and I have placed the content of our old index.php file into the WP CMS as a page, so that I can include that content into the new index.php file (see code below). Is there any problem with replacing the WP index.php installed in the root of the website with our index.php file, so that I don't have to worry about the stuff in Wordpress relating to "Home" pages, etc? In other words, so that if a user goes to our website without a trailing /<file_specifier>, they will get our index.php file by default? Our index.php code is below:
------------------------------ <?php $GLOBALS['ectcartpage']='products'; require('./wp-ect-header.php'); get_header(); ?> <style> div.col-4{ padding-left: 0px; padding-right: 0px; } </style> <div class="midWrapper"> <div class="container"> <div class="row clearfix"> <div class="col-12 mid_<?php echo CONTAINER_POS?>"> <?php $post = get_post( 58 ); $output = $post->post_content; print "$output\n"; ?> </div> <!-- <?php get_sidebar(); ?> --> </div> </div> </div> <?php get_footer(); ?>
----------------------------- Thanks, Dave.
|