Forum Replies Created

Viewing 10 replies - 16 through 25 (of 25 total)
  • Thread Starter Vcize

    (@vcize)

    Anyone have any feedback on this? This is a crucial feature for me and I can’t get it working…

    Thread Starter Vcize

    (@vcize)

    Also, I have tried disabling all other plugins besides each of this individually, and still nothing.

    Thread Starter Vcize

    (@vcize)

    Thanks Marventus. You mentioned there are lots of good plugins out there for that. Were there any that you had in mind? I did some searching around and couldn’t find much that seemed to fit my needs.

    Thread Starter Vcize

    (@vcize)

    Anyone?

    Thread Starter Vcize

    (@vcize)

    Thank you!!

    No, I didn’t mean for the filter and function name to be different, and that fixed my problem. Apparently I had been staring at the code for far too long to actually see it 😛

    Thanks again!

    Thread Starter Vcize

    (@vcize)

    The 100 word limit is my doing, I did it with the following statement in the functions.php file:

    function new_excerpt_length($length) {
    return 100;
    }
    add_filter(‘excerpt_length’, ‘new_excerpt_length’);

    Yeah, the_excerpt is called on my front page. Here is the pastebin for my functions.php file. Let me know if you want the front page as well.

    http://pastebin.com/3bsdjYNS

    I don’t believe that content_limit is called anymore. That was part of the theme but I changed the front page to call the_excerpt instead of it.

    Thread Starter Vcize

    (@vcize)

    Bump back to the first page, I’m still trying to figure this one out.

    Thread Starter Vcize

    (@vcize)

    Yeah I actually tried that as well (the only difference was changing the return to $text, right?), and I get the same result where the excerpt doesn’t show up at all after doing it.

    Thread Starter Vcize

    (@vcize)

    Whoops, forgot to post that the blog is

    http://batmanarkhamcity.org

    Btw, the code I put in functions.php that just made the whole excerpt disappear was:

    remove_filter('get_the_excerpt', 'wp_trim_excerpt');
    add_filter('get_the_excerpt', 'replacement_custom_trim_excerpt');
    
    function replacement_wp_trim_excerpt($text) {
    	$raw_excerpt = $text;
    	if ( '' == $text ) {
    		$text = get_the_content('');
    
    		$text = strip_shortcodes( $text );
    
    		$text = apply_filters('the_content', $text);
    		$text = str_replace(']]>', ']]>', $text);
    		$text = strip_tags($text);
    		$excerpt_length = apply_filters('excerpt_length', 55);
    		$excerpt_more = apply_filters('excerpt_more', ' ' . '[...]');
    		$words = preg_split("/[\n\r\t ]+/", $text, $excerpt_length + 1, PREG_SPLIT_NO_EMPTY);
    		if ( count($words) > $excerpt_length ) {
    			array_pop($words);
    			$text = implode(' ', $words);
    			$text = $text . $excerpt_more;
    		} else {
    			$text = implode(' ', $words);
    		}
    	}
    	return apply_filters('replacement_wp_trim_excerpt', $text, $raw_excerpt);
    }*
    Vcize

    (@vcize)

    Hi simplethemes, I’m using jambo theme on a few of my websites and am really liking it.

    I do have one question though. How can I adjust the column width of the main page such that it matches the column width of all the other pages on the site? When I create a new page, the page is broken down with a left column that is about 80% width, and a right column that is about 20%. However, on the main page the left column and right column are both about 50%. I’m trying to make the main page the same dimensions as the other pages (roughly 80/20).

    I’ve scoured through the template files, css files, etc and I can’t find where this is set. Do you recall how it’s set up?

Viewing 10 replies - 16 through 25 (of 25 total)