Forums

Alight 'Continue Reading' to the RIGHT (14 posts)

  1. salluhee
    Member
    Posted 8 months ago #

    Hello there. I have TWENTY TEN theme on my wordpress.
    And I am trying to EDIT and ALIGN TO THE RIGHT the 'Continue Reading'.

    Here is my Blog's link --> http://www.musamarkhanco.com/

    Any idea how to carry out this thing? :S

  2. esmi
    Theme Diva & Forum Moderator
    Posted 8 months ago #

    Don't edit the Twenty Ten theme. Instead create a child theme for your customisations. Once your child theme is active, we should be able to help with the customisation.

  3. salluhee
    Member
    Posted 8 months ago #

    I have already installed the Child theme now.
    I have a copy of the Header.php, Loop.php and Single.php now, and the footer.php with just this

    <?php

    add_action( 'init', 'mytheme_setup' );

    function mytheme_setup() {
    set_post_thumbnail_size( 100, 100, true );
    add_image_size( 'single-post-thumbnail', 250, 250 );
    }

    ============

    Now?

  4. esmi
    Theme Diva & Forum Moderator
    Posted 8 months ago #

    To align the link right, try adding:

    .more-link {
    display:inline-block;
    text-align:right;
    }

    to your stylesheet. To change the continue reading text, you will need to make a copy of the loop.php template file and replace <?php the_content(); ?> with <?php the_content('Your text goes here'); ?>

  5. salluhee
    Member
    Posted 8 months ago #

    I did. But it dint go to the RIGHT.

    I added that CODE to both the Child theme style.css and the twentyten style.css, but still no work

  6. esmi
    Theme Diva & Forum Moderator
    Posted 8 months ago #

    Leave Twenty Ten's style.css file alone! All of your changes/additions should be to your child theme only. Try:

    .more-link {
    display:block;
    text-align:right;
    }

    instead.

  7. salluhee
    Member
    Posted 8 months ago #

    Alright it aligned it to the right but when I tried to write 'Read More' in that Your Text Goes Here, its still Continue Reading there :S

    PS. I had to put a CUT in the post edit, can't the Excerpt itself be shown on the posts page?

  8. esmi
    Theme Diva & Forum Moderator
    Posted 8 months ago #

    Try replacing <?php the_content(); ?> with <?php the_excerpt(); ?>

  9. salluhee
    Member
    Posted 8 months ago #

    You mean make it look like

    <?php the_excerp('Your text goes here'); ?>
    ??

  10. salluhee
    Member
    Posted 8 months ago #

    I did, made no difference :S
    please have a look at it here --> http://www.demortalz.com

  11. esmi
    Theme Diva & Forum Moderator
    Posted 8 months ago #

    You mean make it look like

    No. Just use <?php the_excerpt(); ?>. There are Codex pages on all of these functions. Have you tried reading any of them?

  12. salluhee
    Member
    Posted 8 months ago #

    Ok I replaced the <?php the_excerp('Your text goes here'); ?>
    with <?php the_excerpt(); ?>

    and in the style.css of the child theme, there is

    .more-link {
    display:block;
    text-align:right;
    }

    and still its not aligned to the right side :s

    and now I havent tried the Codex pages. I am not a coder or developer you see.

  13. esmi
    Theme Diva & Forum Moderator
    Posted 8 months ago #

  14. salluhee
    Member
    Posted 8 months ago #

    well my friend I dont get that to be frank. They dont clarify it that where do we have to edit the codes :S

Reply

You must log in to post.

About this Topic