Forum Replies Created

Viewing 15 replies - 1 through 15 (of 28 total)
  • Thread Starter yatiya

    (@yatiya)

    So I sort of figured it out. The theme is using the following code to link to the pages:

    <div class="box-content">
              <p><?php echo wp_kses_post(spiritedlite_content(74)); ?></p>
              <div class="clear"></div>
              <p><a href="<?php the_permalink(); ?>" class="simple-btn-small" style="color:#fff">
                <?php esc_attr_e('Read More', 'spirited-lite');?>
                </a> </p>
              <div class="clear"></div>

    By manipulating the number after content (default is 35), I can increase the amount of text, but it only seems to affect the first box.

    So the question is, what exactly does that number mean? And how can I get it to affect the second box?

    EDIT: ok, it looks like it did affect the second box as well, but because of how that text is formatted, it doesn’t take up as much of the space as the first box. So, can I use CSS/function, to make the second box ONLY, display more text?

    Thread Starter yatiya

    (@yatiya)

    hi Evan

    No, unfortunately it doesn’t. Let me explain:

    I am not trying to increase the amount of text shown for blog posts.

    On my homepage, below the slider, there are three boxes. Each links to another page of the site (with a “read more” button)

    Now, the amount of text shown from the linked pages in those boxes, is very limited, with the result that half the box is empty.

    So what i want to do, is to show more text from the pages that those boxes link to, so that the box fills up, and the “read more” buttons line up at the bottom (at the moment they are at different levels, and it looks unprofessional)

    I hope this makes sense.

    Thread Starter yatiya

    (@yatiya)

    Thanks.

    I tried the above, but it didn’t work. What it did do was to increase the excerpt length of my blog posts, but not the amount if text in the boxes:(

    Any other ideas?

    Thread Starter yatiya

    (@yatiya)

    Thank you

    I’ve figured out the header image (3), as well as how to split the phone numbers up.

    Regarding the 4th issue, you won’t be able to see it, because it only appears when I’m logged in as a poster. However, I’ve now created posts, so it’s not really an issue anymore.

    This is the index.php code. I don’t see excerpt anywhere? Besides, I don’t want ALL my blog posts to display the whole post – just the front page three boxes.

    get_header();
    ?>
    <div class="container">
         <div class="page_content">
            <section class="site-main">
            	 <div class="blog-post">
    					<?php
                        if ( have_posts() ) :
                            // Start the Loop.
                            while ( have_posts() ) : the_post();
                                /*
                                 * Include the post format-specific template for the content. If you want to
                                 * use this in a child theme, then include a file called called content-___.php
                                 * (where ___ is the post format) and that will be used instead.
                                 */
                                get_template_part( 'content', get_post_format() );
    
                            endwhile;
                            // Previous/next post navigation.
                            spiritedlite_pagination();
    
                        else :
                            // If no content, include the "No posts found" template.
                             get_template_part( 'no-results', 'index' );
    
                        endif;
                        ?>
                        </div><!-- blog-post -->
                 </section>
    
            <?php get_sidebar();?>
            <div class="clear"></div>
        </div><!-- site-aligner -->
    </div><!-- content -->
    <?php get_footer(); ?>

    Thanks again

    Thread Starter yatiya

    (@yatiya)

    Nevermind. I used a custom css to float: left, and padding-right: 20px, to do it and separate it from the post.

    In addition, i used a custom styles.css to make it a specific size of 140 x 140 px (not sure why it’s using full-sized images, but then there’s a lot about WP that I don’t understand!)

    Thread Starter yatiya

    (@yatiya)

    I THINK what I need to do, is to put the post and the featured image into one container. Problem is, I have no idea how to do that. Any ideas?

    Thread Starter yatiya

    (@yatiya)

    Thank you Digico and Innuvo!

    Thread Starter yatiya

    (@yatiya)

    Wow thanks!

    I use SiteOrigin Custom CSS, so I just pasted your code into that.

    I’m learning, so can I ask – How did you decide what the breakpoint is?

    Thread Starter yatiya

    (@yatiya)

    Sure, sorry, I should have put it in the original post!

    https://www.entdocatiya.co.za/blog

    Thread Starter yatiya

    (@yatiya)

    Thanks Innuvo. I also thought that’s the way to go. The problem is, WordPress doesn’t seem to assign a page ID to a static Blog Page? How would I identify what that ID is?

    Thread Starter yatiya

    (@yatiya)

    Ummm. Maybe for you:) I’m a noob. Do I put that in the header.php?

    Thread Starter yatiya

    (@yatiya)

    Finally! I have sorted all issues 1-5! ??

    Thread Starter yatiya

    (@yatiya)

    I’ve sorted it out by referencing the styles.css specifications, editing the size of the image there, and using a bit of custom styles.css.

    Thread Starter yatiya

    (@yatiya)

    YES! That split them up. However, nothing happens when I click/tap on them? Do I need to add a tel: command somewhere? or maybe an href?

    So, with this method, I’ll have to edit the numbers manually if they ever change, right? The previous code linked them to the customizer. I don’t mind, I’m just curious.

    Thread Starter yatiya

    (@yatiya)

    Thanks. Not encouraging that mine is the only post there….

Viewing 15 replies - 1 through 15 (of 28 total)