• Hi all,

    Ive been working on a page, and i have three featured page boxes in the top of the template. I can fill them with whatever page i can make.

    The problem here is that it will not show images, and one of the three needs to have a few buttons.
    And another one small logo’s of our partners.

    Anyone able to help me put images in there, it will show images when i press read more and get the full page, but not on the frontpage.

    https://www.unitmanagers.com
    Website is under construction as we speak.

    Anyone able to help?

    Thanks in advance!

    The code for it is:

    * =Featured pages section - front page
    ----------------------------------------------- */
    .tg-one-third {
    float: left;
    width: 31.143952%;
    margin: 0 3.284072% 30px 0;
    margin: 0 3.284072% 3rem 0;
    }
    .tg-one-third-last {
    margin-right: 0;
    }
    #featured_pages {
    padding-bottom: 15px;
    text-align: center;
    }
    #featured_pages img {
    vertical-align: top;
    margin-bottom: 20px;
    margin-bottom: 2rem;
    }
    #featured_pages .page_text_container {
    background-color: #FFFFFF;
    padding: 30px 30px 20px;
    padding: 3rem 3rem 2rem;
    border: 1px solid #FF9933;
    }
    #featured_pages .entry-title {
    line-height: 1;
    margin-bottom: 10px;
    margin-bottom: 1rem;
    font-size: 24px;
    font-size: 2.4rem;
    }
    #featured_pages p {
    margin-bottom: 15px;
    margin-bottom: 1.5rem;
    font-size: 14px;
    font-size: 1.4rem;
    }
    #featured_pages a.more-link {
    font-size: 14px;
    font-size: 1.4rem;
    border: 1px solid #EAEAEA;
    border-radius: 4px;
    color: #555555;
    padding: 4px 10px;
    }
    #featured_pages a.more-link:hover {
    border: 1px solid #632E9B;
    border-radius: 4px;
    color: #632E9B;
    padding: 4px 10px;
    text-decoration: none;
    }

    If anyone is able to tell me how to fix thise, please do help.

    Id also like to center the menu, but all ive done had no effect, any way for that? Thanks!

Viewing 1 replies (of 1 total)
  • Did you set post / page images? Because these are use on the frontpage. Have a look in the front-page.php

    I change the code in my childtheme to

    <?php if ( has_post_thumbnail() ) { ?>
                    <a href="<?php the_permalink(); ?>">
                            <?php the_post_thumbnail(); ?>
                    </a>
                    <?php } ?>

    to have the picture link to the post.

Viewing 1 replies (of 1 total)
  • The topic ‘Images in the Featured pages on front page’ is closed to new replies.