Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

Thread: WP code change help Please.

  1. #11
    Join Date
    Dec 2008
    Location
    Redmond, Oregon
    Posts
    828
    going out of my realm now can try something like this

    in functions.php
    PHP Code:
    function ShortenText($str$length) {
      
    $str strip_tags($str);
      
    $str explode(" "$str);
      return 
    implode(" " array_slice($str0$length));

    then change

    PHP Code:
    <?php the_title(); ?>
    to something like this

    PHP Code:
    <?php echo ShortenText(get_the_title(), 2); ?>
    a php guru may see a error in this and help kinda worked but not perfect on my test site.

    Reverse IP Check ಠ_ಠ Proxy Sites
    <?php if ($youask == 'stupid question') { echo ('stupid answer'); } ?>

  2. #12
    Hi,

    Need more info on this.

    Where do I paste the code in functions.php

    I placed at the bottom and it brought the site to a screeching halt.

    Even the admim quit working had to ftp. the backup twice.

    got this error when you went to the site.

    Parse error: syntax error, unexpected $end in /home/sami/domains/freewomensblogs.com/public_html/wp-content/themes/freewomenstheme/functions.php on line 417

    Sami
    Current Celebrity Gossip Movies & More TV Site
    Find out how I'm able to get up to 420 backlinks for month, by spending 30 seconds per day...all for FREE! - Click Here

  3. #13
    Join Date
    Dec 2008
    Location
    Redmond, Oregon
    Posts
    828
    should add it to the top of the function.php right after the <?php

    Reverse IP Check ಠ_ಠ Proxy Sites
    <?php if ($youask == 'stupid question') { echo ('stupid answer'); } ?>

  4. #14
    Hi Mr.Bill,

    That worked. 100% Thanks a bunch.

    Sami
    Current Celebrity Gossip Movies & More TV Site
    Find out how I'm able to get up to 420 backlinks for month, by spending 30 seconds per day...all for FREE! - Click Here

Page 2 of 2 FirstFirst 12

Similar Threads

  1. change about the world?
    By theezy in forum General Chat
    Replies: 7
    Last Post: 17 May, 2010, 20:49 PM
  2. [WTH] Someone to Change Text on a .PSD
    By Kovich in forum Marketplace
    Replies: 1
    Last Post: 22 April, 2010, 07:20 AM
  3. A question about change in url
    By mega in forum Promoting
    Replies: 3
    Last Post: 21 July, 2009, 06:06 AM
  4. One Change You Would Like To See On WMP?
    By Farrhad A in forum General Chat
    Replies: 13
    Last Post: 3 June, 2009, 07:34 AM

Tags for this Thread

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
  •