Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter will64

    (@will64)

    Hi, Tom,
    Sorry for my late reply.
    A min-height works perfectly. Thank you very much, I didn’t think of that.

    Thread Starter will64

    (@will64)

    Thank you very much for your answer, Leo.

    the code given by tom doesn’t work for me: it removes the background of the site after the footer, but this one isn’t at the bottom of the page. See the image:

    Thread Starter will64

    (@will64)

    Thank you very much Tom, it works perfectly.
    One last question, is it possible to reduce the number of words in the excerpt?

    [UPDATE]
    In fact, I just found out: you have to copy and paste this code into the functions. php file of your child theme:

    function wpm_post_excerpt($length) {
    	return 20;
    }
    add_filter('excerpt_length', 'wpm_post_excerpt');

    In this example, the excerpt will contain 20 words. You can modify this number by the one you want.

    Thread Starter will64

    (@will64)

    Hi Tom,

    Thank you very much for your answer. Well, you’re right.

    Finally, I found another way to do what I wanted to do:
    I wanted the thumbnail on the front left and all the text on the right (I didn’t want text below the image).

    Here’s the code I used:

    SECTION#primary > MAIN#main > ARTICLE > DIV.inside-article {
      overflow: hidden;
      padding-left: 330px!important;
    }
    .post-image{
      margin: 0 0 0 0;
      margin-left: -295px!important;
      float: left;
      max-width: 295px;
    }
    .size-full {
      vertical-align: bottom;
      border-radius: 6px;
    }
    SECTION#primary > MAIN#main > ARTICLE > DIV.inside-article > HEADER.entry-header, .entry-summary {
      margin-left: 2em;
    }  

    I have another question: I would like the date to be above the title of the article. Is it possible, how to do it?

    Thread Starter will64

    (@will64)

    I come to point out another problem that I found:
    The widget area in the header disappears when you switch to mobile or tablet.
    For info, I have used this code given on the forum:

    /* always display header widgets */
    #header-widgets {
        display: block !important;
    }
    #header-widgets {
        max-width: 728px;
        width: 100%;
    }@media only screen and (max-width: 728px) {
      #header-widgets {
        display: block !important;
      }
    }
    /* changes for iPad viewport */
    @media only screen and (max-width: 1200px){
        /* remove top padding */
        #header .pad {
            padding-top: 0;
        }
        /* adjust and center title */
        .site-title {
            padding: 30px 0;
            width: 100%;
            float: none;
            line-height: 50px;
        }
        .site-title a {
            text-align: center;
        }
        /* hide description */
        .site-description {
    	display: none;
        }
        /* center ads widget container */
        #header-widgets {
            max-width: 728px;
            width: 100%;
    	float: none;
    	margin: 0 auto;
        }
    }

    Edit: I have just seen that this problem will be solved in the next version (3.3.9):
    https://wordpress.org/support/topic/version-3-3-8-issue-header-widget-not-displaying/

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