This is the out-of-the-box define_main_page of responsive_classic:
In my custom file I have the 'this content....' part removed and have only jpgs which are controlled by the first part of the code re desktop/tablet/mobile.Code:<?php if ( $detect->isMobile() && !$detect->isTablet() || $_SESSION['layoutType'] == 'mobile' ) { ?> <a href="http://www.zen-cart.com/book"><img src="includes/templates/responsive_classic/images/zencart-book-mobile.png" alt="get your manual today" title="Have you got yours yet? Join the 1000's of Zen Cart users that have bought the only comprehensive owners manual !" class="home-image" /></a> <?php } else if ( $detect->isTablet() || $_SESSION['layoutType'] == 'tablet' ){ ?> <a href="http://www.zen-cart.com/book"><img src="includes/templates/responsive_classic/images/zencart-book.png" alt="get your manual today" title="Have you got yours yet? Join the 1000's of Zen Cart users that have bought the only comprehensive owners manual !" class="home-image" /></a> <?php } else if ( $_SESSION['layoutType'] == 'full' ) { ?> <a href="http://www.zen-cart.com/book"><img src="includes/templates/responsive_classic/images/zencart-book.png" alt="get your manual today" title="Have you got yours yet? Join the 1000's of Zen Cart users that have bought the only comprehensive owners manual !" class="home-image" /></a> <?php } else { ?> <a href="http://www.zen-cart.com/book"><img src="includes/templates/responsive_classic/images/zencart-book.png" alt="get your manual today" title="Have you got yours yet? Join the 1000's of Zen Cart users that have bought the only comprehensive owners manual !" class="home-image" /></a> <?php } ?> <p class="biggerText">The template package uses PHP Mobile Detect to serve up the optimized layout based on device. If you are on a Desktop and want to view the Tablet layout <a class="red" href="index.php?main_page=index&layoutType=tablet">use this link.</a> If you want to view the Mobile layout <a class="red" href="index.php?main_page=index&layoutType=mobile">use this link.</a> To switch back to a Desktop <a class="red" href="index.php?main_page=index&layoutType=default">use this link.</a></p> <p>This content is located in the file at: <code> /languages/english/html_includes/YOUR_TEMPLATE/define_main_page.php</code></p> <p>You can quickly edit this content via Admin->Tools->Define Pages Editor, and select define_main_page from the pulldown.</p> <p><strong>NOTE: Always backup the files in<code> /languages/english/html_includes/your_template</code></strong></p>
Trying to add my own bit of text above the jpgs with ckeditor in the define pages tools breaks the page and puts the text in the middle of a hodge podge of bits of code and all the jpgs -so the jpg for mobile and tablet show up on the deskptop along with bits of code.
Add regular text editor instead of ckeditor in the define pages works but I can't stlye the text at all with html tags or I get the same broken page.
So what I tried was using the bottom section of the stock file ('this content...) and deleted the stock text and replaced it with my own, including substituting my own words I want in color red in place of the href links. This worked except there was no corresponding red class defined in the stylesheet. When I added that, the color worked. A wild and crazy way to skin a cat, admittedly! But I was unable to edit the main page otherwise - this is why I wondered if there is some sanitize feature or other unintended reason why the ckeditor won't function on that page because of the resident php stuff.
Bookmarks