Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 25
  1. #11
    Join Date
    Dec 2004
    Posts
    1,031
    Plugin Contributions
    0

    Default Re: Adding another text section to homepage

    Oh no! I was celebrating too fast. The text loads now on every page. All I want is that it load on the home page. Any ideas?
    Live and learn... the Zen way.

  2. #12
    Join Date
    Apr 2008
    Location
    Nottingham, UK
    Posts
    46
    Plugin Contributions
    1

    Default Re: Adding another text section to homepage

    How about a PHP if statement that only pulls that EZ page when displaying the homepage?

    Nick

  3. #13
    Join Date
    Dec 2004
    Posts
    1,031
    Plugin Contributions
    0

    Default Re: Adding another text section to homepage

    Yes exactly, can you help me with that? I struggle...
    Live and learn... the Zen way.

  4. #14
    Join Date
    Dec 2004
    Posts
    1,031
    Plugin Contributions
    0

    Default Re: Adding another text section to homepage

    Probably something like:

    HTML Code:
    <?php 
    <div id="seo_content">
    if ($this_is_home_page) {
        $page_query = $db->Execute("SELECT pages_html_text FROM ezpages WHERE pages_title='SEO'");
        $seo_text = $page_query->fields['pages_html_text'];
        echo $seo_text;
        }
       
    </div>
    
    </body>
    
    ?>
    Live and learn... the Zen way.

  5. #15
    Join Date
    Dec 2004
    Posts
    1,031
    Plugin Contributions
    0

    Default Re: Adding another text section to homepage

    Sorry try again:
    HTML Code:
    <!--bof- SEO Ezpage text -->
    <div id="seo_content">
    <?php
    if ($this_is_home_page) {
        $page_query = $db->Execute("SELECT pages_html_text FROM zen_ezpages WHERE pages_title='SEO'");
        $seo_text = $page_query->fields['pages_html_text'];
        echo $seo_text;
        } ?>  
    </div>
    <!--eof- SEO Ezpage text -->
    Seems to work. Does this look correct?
    Live and learn... the Zen way.

  6. #16
    Join Date
    Apr 2008
    Location
    Nottingham, UK
    Posts
    46
    Plugin Contributions
    1

    Default Re: Adding another text section to homepage

    My PHP skills are sadly lacking, but that seems to make sense! Is that in use on your site now?

    I was wondering whether having the same SEO text on each page would actually be harming results instead of helping.. so this could come in handy.

    Nick

  7. #17
    Join Date
    Dec 2004
    Posts
    1,031
    Plugin Contributions
    0

    Default Re: Adding another text section to homepage

    I use it for additional text below the category pictures. I don't want the whole blabla taking up most of the page and customers would not even see the pictures. This way, the most important intro text is on top, then pics, then I can put more text for the customer AND search engines to get enough content on the home page.

    If you want to put the most important keywords as the last thing on every page, put it in the footer. Too much text that repeats on every page might not be great for SEO.

    And yes, I implemented this on the first site in my signature.
    Live and learn... the Zen way.

  8. #18
    Join Date
    Apr 2008
    Location
    Nottingham, UK
    Posts
    46
    Plugin Contributions
    1

    Default Re: Adding another text section to homepage

    Good stuff! Thanks, I may well use that on an upcoming site :)

    Nick

  9. #19
    Join Date
    Oct 2008
    Posts
    111
    Plugin Contributions
    0

    Default Re: Adding another text section to homepage

    Hi

    Great thread - just what I have been searching for. followed instructions, but is is not working. See bottom of homepage.

    http://trulyethical.com

    Can anyone help?

    Thanks

    matt

  10. #20
    Join Date
    Jan 2008
    Location
    Portland, Oregon USA
    Posts
    356
    Plugin Contributions
    0

    Default Re: Adding another text section to homepage

    I wanted editable text both above and below my featured items and bunyip provided these simple steps:

    http://www.zen-cart.com/forum/showpo...31&postcount=6

    His solution works perfectly. His method uses define_pages rather than ez-pages.
    Doug

 

 
Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. Copying a Section (category) of my Store to Another Site
    By shags38 in forum General Questions
    Replies: 2
    Last Post: 29 Feb 2012, 06:38 AM
  2. Adding text to homepage
    By gamenet in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 11 Oct 2010, 08:07 AM
  3. New Products for (Month) section on homepage
    By zidain in forum General Questions
    Replies: 5
    Last Post: 27 Dec 2009, 07:13 PM
  4. Adding text to homepage listing of products
    By webmiss in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 1 Nov 2008, 04:55 PM
  5. adding new section on homepage -
    By keylesslocks in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 25 Jan 2008, 06:46 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR