ThemeShaper Forums » Thematic


The "read more" function

(10 posts)
  • Started 6 years ago by Jagst3r15
  • Latest reply from Jagst3r15
  • This topic is resolved
  1. Alright so I am working on a new theme and am quite happy with it so far, but I cannot figure out why the main page is not displaying the "read more" link at the bottom (i.e. the thing that comes up when the post is a certain length). Any ideas?

    Posted 6 years ago #
  2. unless you've changed it, the index loop shows the full post, so you'll never see excerpts... you'd only see truncated posts if you've manually added a "more tag"

    if you'd rather show excerpts on the home page you'll need to filter thematic_content

    function kia_home_excerpts($content){
      if(is_home()) $content='excerpt';
      return $content;

    watch out for typos, i just wrote that from memory

    Posted 6 years ago #
  3. Also, I was wondering how I would include a color picker into my theme-options? I currently have the main functions.php and a phpstyle.php.

    Posted 6 years ago #
  4. W00t got it to work :), still need some assistance with the color picker (I have looked at a bunch of tutorials but am really confused).

    Posted 6 years ago #
  5. color picker is not really thematic related. but i would suggest if you need color pickers you should try out devin's options framework. he's got colorpickers and other complicated theme options built-in.

    Posted 6 years ago #
  6. thanks for the help helga, I would be lost without it. However, I am trying to build my own theme options to get a better understanding of how it works. I got the color picker to work (I used farbtastic) but I cannot get my new options css to override the default thematic options admin css. What code would I add to to my functions.php file to force my style sheet to override this?

    Thanks in advance! :-)

    Posted 6 years ago #
  7. even if you don't want to use his plugin, you can still download it and see how he does it... which i'm fairly certain is the way Woo and the other big guns do it. by generating the CSS in a function and adding said function to the wp_head hook... probably w/ a large priority number to ensure it comes somewhat later/after the main styles are loaded.

    Posted 6 years ago #
  8. So I added this but it doesnt seem to do anything...sorry for so many questions but I wouldn't know where to go.

    /* Variables */
    $childthemename = "New Theme";
    $childthemeshortname = "new";

    function childthemename_load_styles() {
    wp_enqueue_style('stylesheet_url', New_Theme_URL.'functions.css');

    Posted 6 years ago #
  9. CSS can't process PHP which is why why i said you should write out the inline styles and add them to the wp_head hook. please take a look at what devin is doing w/ his plugin. the answers are all there.

    Posted 6 years ago #
  10. ah, yes you are right it makes sense now. ty helga!

    Posted 6 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.