• well i got a site and i want to be able to make people press the “readmore” button if they wana download the game thats on that blog.
    thats why im asking if there is a way to make that the button will appear automaticly lets say after 1 line or after 50 words or something like that so i dont need to add the “moretag” each post..

    i tryed using special addons like Homepage Excerpts or WP Limit Posts Automatically and they work with the Twenty Eleven 1.2 theme
    but when i try using them with a diffrent theme like Infrared they wont work.. anyideas how to fix this?

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter itzikd

    (@itzikd)

    anyone? please

    As far as I know, you’ll need a theme that supports this feature, or a plugin that adds it, as it is not build into WordPress.

    I know that all StudioPress themes have this setting, but not sure about free themes here in the WordPress repository.

    You could try this in your functions.php (in a child theme.)

    /* EXCERPT LENGTH */
    function new_excerpt_length($length) {
    	return 36;
    }
    add_filter('excerpt_length', 'new_excerpt_length');

    Change “36” to however many words you want. Then set your page to display excerpts. In twentyeleven, you would do that in the content.php but if you are using a different theme it might be different, you’ll have to ask the designer.

    Thread Starter itzikd

    (@itzikd)

    tried that, didnt work but i found this function in theme

    function new_excerpt_more($more) {
    return '<a>ID) . '">' . '??[ Read More ]' . '</a>';
    }
    add_filter('excerpt_more', 'new_excerpt_more');

    any chance i can change it somehow to make the read more button show automaticly after 5 words?

    [Please post code snippets between backticks or use the code button.]

    Thread Starter itzikd

    (@itzikd)

    i have a new idea
    using quick adsense i can add any html code to anywere i want in the post automaticly
    is there any html code for “read more” in wordpress?

    Thread Starter itzikd

    (@itzikd)

    BUMP

    This is the WordPress quick tag code.
    <!--more-->

    There is a More button you can click on as well, which inserts the code for you when visiting using the visual editor.

    Thread Starter itzikd

    (@itzikd)

    i tryed that and i saw in the html place doing the <–more–> code but when i paste that into the quick adsense it wont effect the post, but if lets say i put a google code or write something it will show it

    I have no idea what Quick Adsense is, so my guess is that it won’t recognize the code. You have to add it directly to the HTML in the text editor, and not by using the plugin you mention above, which is probably geared towards ad embed codes, and not WordPress quick tags.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘making the READ MORE button appear automaticly after XX words’ is closed to new replies.