Results 1 to 9 of 9

Thread: Xtreme Carousel Height Fix for Ads on Front Page

  1. #1
    Thread Starter
    ocaladesigns's Avatar
    Join Date
    Jan 2012
    Posts
    76
    Thanks
    1
    Thanked 5 Times in 3 Posts

    Xtreme Carousel Height Fix for Ads on Front Page

    I need some help tweaking a little PHP for the XTremeCarousel plugin. This code below truncates the title if it's greater or equal to 14 characters. I need it to do the same thing for the category and the user name so it won't wrap them. If either of them get wrapped, it pushes the buttons down below the div they are enclosed in. You can see an example at www.ocalaequinesales.com. Here's the part of the code in question, you can see the 2nd line is where the title is grabbed and truncated. I'm going to attempt to rewrite it myself but am open to suggestions as i don't think I have the necessary skills needed to do it ... lol

    In the end, each line except the price would need to be truncated to 14 characters so they don't wrap the information down. In the link above you can see the one rescue horse's feature ad button is half missing since it's pushed down due to the category name wrapping.

    Any php gurus out there with a quick fix?

    Code:
    <div style="margin-top:16px"></div>
                <a id="rb_title"><?php if ( mb_strlen(get_the_title()) >= 14 ) echo mb_substr( get_the_title(), 0, 14 ).'...'; else the_title(); ?></a>
                <p id="rb_xtrmcarousel">
                	Under: <?php if ( get_the_category() ) the_category(', '); else echo get_the_term_list( $post->ID, APP_TAX_CAT, '', ', ', '' ); ?><br />
                	By: <span class="owner"><?php the_author_posts_link(); ?></span><br />
                	<span class="rb_price">Price: <?php if ( get_post_meta( $post->ID, 'price', true ) ) cp_get_price_legacy($post->ID); else cp_get_price( $post->ID, 'cp_price' ); ?></span>
                </p>

  2. #2
    jomarkosabel's Avatar
    Join Date
    Mar 2009
    Location
    Philippines
    Posts
    38,156
    Thanks
    161
    Thanked 3,134 Times in 3,006 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Please help our moderating team work more efficiently by not sending us support questions via PM. You can read more about how AppThemes support works here. However, you can send a PM to follow up and remind me if I missed your support request/thread.

    Thank you and have a nice day.

  3. #3
    Thread Starter
    ocaladesigns's Avatar
    Join Date
    Jan 2012
    Posts
    76
    Thanks
    1
    Thanked 5 Times in 3 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  4. #4
    Thread Starter
    ocaladesigns's Avatar
    Join Date
    Jan 2012
    Posts
    76
    Thanks
    1
    Thanked 5 Times in 3 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  5. #5
    Thread Starter
    ocaladesigns's Avatar
    Join Date
    Jan 2012
    Posts
    76
    Thanks
    1
    Thanked 5 Times in 3 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  6. #6
    cgatherings's Avatar
    Join Date
    Jan 2012
    Location
    Washington
    Posts
    208
    Thanks
    30
    Thanked 4 Times in 4 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  7. #7
    cgatherings's Avatar
    Join Date
    Jan 2012
    Location
    Washington
    Posts
    208
    Thanks
    30
    Thanked 4 Times in 4 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  8. #8
    cgatherings's Avatar
    Join Date
    Jan 2012
    Location
    Washington
    Posts
    208
    Thanks
    30
    Thanked 4 Times in 4 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  9. #9
    Thread Starter
    ocaladesigns's Avatar
    Join Date
    Jan 2012
    Posts
    76
    Thanks
    1
    Thanked 5 Times in 3 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Mod to remember the selected tab on front page, ad page and blog page
    By ovidiubica in forum ClassiPress General Discussion
    Replies: 0
    Last Post: September 9th, 2011, 02:21 PM
  2. [SOLVED] How can I reduce the height of the index page??
    By swepe in forum ClassiPress General Discussion
    Replies: 2
    Last Post: August 1st, 2011, 09:49 AM
  3. Replies: 1
    Last Post: June 5th, 2011, 11:18 AM
  4. Creating a Step Carousel in Home Page
    By kevinduque in forum ClassiPress General Discussion
    Replies: 4
    Last Post: August 11th, 2009, 09:55 AM