Forum Replies Created

Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter katrinakvr

    (@katrinakvr)

    Are you comfortable editing the .php files? All you need is a text editor.

    With a lot of help, this is what I did.

    First make a new child theme from twenty twelve. It’s easy;
    1. make a new folder in the wordpress/wp-content/themes folder (directory) and name it whatever you want to call your new theme.
    2. copy the style.css and the footer.php files from the blocomo directory to your new directory.
    3. copy the content.php file from the twentytwelve directory to your new directory.
    4. open the copy of style.css in a text editor (Notepad or something like that) and made the appropriate changes to the header information to reflect the new theme name, etc. Save your changes.
    5. open the copy of content.php with the text editor and find this section:
    </header><!– .entry-header –>

    <?php if ( is_search() ) : // Only display Excerpts for Search ?>
    <div class=”entry-summary”>
    <?php the_excerpt(); ?>
    </div><!– .entry-summary –>

    I replaced that section with this:
    <!– .entry-header –>

    <div class=”entry-summary”>
    <?php if (( is_search() || is_home() || is_category() ) && has_excerpt()) : // Only display Excerpts for Search, Home and Category ?>
    <?php the_excerpt(); ?>
    “> read more <span class=”meta-nav”>→</span> </div>
    <!– .entry-summary –>

    Now I get excerpts on all the pages that would show multiple posts, with a “read more” link leading to the full post.

    I also write custom excerpts or use the “more” tag rather than relying on automatic excerpt of the default first 55 words or whatever it is set to.

    After you are finished with your changes, go to the themes management page in the WP admin section. Your new theme should be showing there. Activate it and see if the changes are what you expect.

    Good luck!
    Katrina

    Thread Starter katrinakvr

    (@katrinakvr)

    Thanks very much Andrew,

    Did exactly what I needed. I had tried changing the margins in .site-content article which did not work.

    So thanks again!

    Katrina

    Thread Starter katrinakvr

    (@katrinakvr)

    Hi Andrew,

    I’ve created a child theme using Christopher’s Blocomo theme as the start. The parent theme is Twenty Twelve.

    My styles.css is from Blocomo and I haven’t modified it yet. The only thing that I’ve really modified so far is content.php.

    My Dashboard doesn’t have Custom Styles, Custom CSS or Jetpack.

    I usually use Notepad or Dreamweaver to edit code.

    Cheers,
    Kaatrina

    Thread Starter katrinakvr

    (@katrinakvr)

    Hi Christopher,

    I was having trouble with all posts that met the is search, home, category criteria being treated as if they had excerpts. But I fixed it without bothering you and got the “more” links prompts to match too. Here’s the code I ended up with:

    <div class=”entry-summary”>
    <?php if (( is_search() || is_home() || is_category() ) && has_excerpt()) : // Only display Excerpts for Search, Home and Category ?>
    <?php the_excerpt(); ?>
    “> MORE <span class=”meta-nav”>→</span> </div>
    <!– .entry-summary –>
    <?php else : ?>
    <div class=”entry-content”>
    <?php the_content( __( ‘MORE <span class=”meta-nav”>→</span>’, ‘twentytwelve’ ) ); ?>

    I have another question about the styling, but I’ll start a new thread for that.

    Thanks again,
    Katrina

    Thread Starter katrinakvr

    (@katrinakvr)

    Thanks very much Christopher, no apologies needed!

    This works great and your other links have pointed me in the direction to learn about this myself.

    Cheers,
    Katrina

    Thread Starter katrinakvr

    (@katrinakvr)

    Hi Christopher,

    Thank you very much for your help. Curiously, your suggested code is already in content.php. But, it looks like it might only being called when there is a search.

    Here is the whole bit:
    <?php if ( is_search() ) : // Only display Excerpts for Search ?>
    <div class=”entry-summary”>
    <?php the_excerpt(); ?>
    </div><!– .entry-summary –>

    Many years ago I did programming, but I’m not really familiar with PHP, and I’m pretty much a newbie with WP.

    Thanks for the links too, I’ll see where they take me.

    Cheers,
    Katrina

    Thread Starter katrinakvr

    (@katrinakvr)

    Thanks very the very quick reply!

    I made the changes and they worked like a charm. My email reader scrambled your message and I had to read it on the forum for it to make sense.

    Thanks again!
    Katrina

    Thread Starter katrinakvr

    (@katrinakvr)

    Thanks Mika!

    This has been a great learning opportunity for me, including restoring from backups after I toasted the existing site yesterday.

    What I have decided to do and have in process, is to create a separate URL for the photo site, host it as a sub domain under my main site. Install WP on the photo site. It means that I will have to administer 2 sites independently, but in the long run that is probably better for my mental health. 🙂

    Thanks for all of your help!
    Katrina

    Thread Starter katrinakvr

    (@katrinakvr)

    Hi Mika,

    I’m not quite sure what you mean here.

    My original thought was that the gallery would be completely separate from the blog with a different theme, menus, etc. The only thing that they would have in common is that they are both WP based sites.

    Cheers,
    Katrina

    Thread Starter katrinakvr

    (@katrinakvr)

    Thanks for this.

    I didn’t know about Custom Post Types, I will check them out.

    The primary site, kosraevillage.com, will stay as it is, with the blog and the gallery being WP sites that are integrated. When I say “integrated” I mean that they have a similar look and are called from the primary site menus.

    It’s too bad that I can’t just install a second WP site.

    Thanks,
    Katrina

    Thread Starter katrinakvr

    (@katrinakvr)

    Yes.

    Other than I will own them both and both will be integrated into the primary kosraevillage.com site.

    The goal of the second WP “gallery” site is to replace the current photo gallery on kosraevillage.com.

    Thanks,
    Katrina

Viewing 11 replies - 1 through 11 (of 11 total)