• Resolved melanie bund

    (@melanie-bund)


    Hi, I have only 1 latest news post on homepage, is it possible to show all the text? rather than have a read more link?. If not, the read more tab links to the post which i presume uses the blog template, i have tried making the blog template full with as i do not want sidebars but the changes do not appear, is there another template that the blog template uses apart from ‘template-parts/content’ which seems to have no width restrictions?
    thank you
    Melanie

Viewing 9 replies - 1 through 9 (of 9 total)
  • Hi Melanie,
    Can you provide us with URL of your site, so we can do custom tweaking?
    Thanks
    Cheers
    TR

    Thread Starter melanie bund

    (@melanie-bund)

    Hi TR
    https://quatro-ventos.com/
    you can also tell me if needed which .php to tweak… do you need the admin info?
    thank you so much
    Melanie

    Thread Starter melanie bund

    (@melanie-bund)

    thanks again
    Melanie

    Hi Melanie,
    So I installed your Theme on my test site, looked for some settings and there you cannot have whole text on front page.
    It would mean to redesign some basics of the Theme.
    From my point of view, it is OK to have Excerpts on front page.
    Anyway:
    You can have one last Post to be displayed on Front page all the text.

    You have to have Child Theme for PIXOVA THEME set.
    Then Copy over FTP your StaticFrontPage.php into the child theme folder
    SO YOU SHOULD HAVE: style.css, function.php and StaticFrontPage.php in the child theme.
    Reason is that all the changes you do to any PHP CSS, are saved in child theme and are not lost due Theme Update

    Open that new StaticFrontPage.php file and go to the row No. : 70
    There you can see this code:

    echo apply_filters('the_content', substr(get_the_content(), 0, 200) );
    
    change the No 200 to something big, so u are sure it covers lenth of your posts.
    
    I did this:
    
    echo apply_filters('the_content', substr(get_the_content(), 0, 20000) );

    and it is working fine.

    Then
    Go to your Dashboard/Settings/Reading
    SET as this:
    Blog pages show at most – 1
    Syndication feeds show the most recent – 1
    For each article in a feed, show – set to Full Text
    …..and save changes.
    Instead of another post you should have pagination appeared.

    …..is there another template that the blog template uses apart from ‘template-parts/content’ which seems to have no width restrictions…….

    As I took a look to the background, there is no other template for Posts.

    For some reason I see your front page like this
    Maybe, before you start do Above, set the theme from the scratch, to be sure, there is no bad CSS or something.
    You have set marging like this for some reason:

    @media (min-width: 992px)
    .col-md-offset-4 {
        margin-left: 33.33333333%;
    }
    
    @media (min-width: 768px)
    .col-sm-offset-3 {
        margin-left: 25%;
    }

    There should be 0 margin I think
    So this is for now, let me know How You are doing.
    Cheers
    TR

    Thread Starter melanie bund

    (@melanie-bund)

    Hi TR, first i would like to thank you for your time and effort, i reinstalled the theme, and copied the frontpage.php to child folder, did your tweek, but nothing changed, the news section text still is right centered and this markup you found, it appears in the bootstrap.css and more-themes.css which i havent touched, i presume the theme would like 4 posts on homepage not just one, and am still struggling to get the post page full width, i think my best option is to strip down the section-news template and add the text manually as it will never change

    Wish me luck and thanks again for all you help
    Melanie

    Hi Melanie,
    It would be good practice to talk to Theme Author. I saw him HERE
    THERE IS SOMETHING STRANGE WITH THE THEME.

    To center this post:
    put this code to your Child Theme style.css file
    OR
    Install Simple Custom CSS plugin and put the code there.
    I’m doing this on my browser to find solution.
    It can get to some different behavior on your site.
    It can happen that it is not working.
    Then we have to look further.

    @media (min-width: 992px)
    .col-md-offset-4 {
        margin-left: 0px;
    }
    @media (min-width: 768px)
    .col-sm-offset-3 {
        margin-left: 0px;
    }
    
    OR
    
    @media (min-width: 992px)
    .col-md-offset-4 {
        margin-left: 0px!important;
    }
    @media (min-width: 768px)
    .col-sm-offset-3 {
        margin-left: 0px!important;
    }

    Full Width Post text:

    .col-lg-8.col-md-8.col-sm-8.col-xs-12 {
        width: 100%;
    }
    
    or
    
    .col-lg-8.col-md-8.col-sm-8.col-xs-12 {
        width: 100%important;
    }

    HERE is a screenshot of my testing site

    Here is a screenshot of your site

    It must be StaticFrontPage.php not just frontpage.php you should copy to child theme.
    I did changed that line just in original StaticFrontPage.php file and it worked out.

    echo apply_filters('the_content', substr(get_the_content(), 0, 20000)

    But When I would update theme I would lost it. It was just for testing time

    …….i think my best option is to strip down the section-news template and add the text manually as it will never change……..

    Do not know what you mean.
    If it is gonna be just this text, then create page instead of the post and replace it for static page.
    Q: why have you chosen this theme? what was a trigger for going with this?

    Let me know
    Cheers
    TR

    Thread Starter melanie bund

    (@melanie-bund)

    Hi TR, for some reason my version of the theme does not have StaticFrontPage.php, in the end what i did was, hide the latest news section and put the text in the testimonials section, display:none the photo and signature and it works great!
    thanks for all your help.
    I chose this theme as i loved the one page design and it was clean, minimalistic, not easy to find with one page themes as they tend to add too much animation and be too busy, i think it confuses the viewers…
    Melanie

    Melanie, Im glad it worked for you.
    Feel free to ask me in the future
    Cheers
    TR

    Ion Rutz

    (@ionrutz_machothemes)

    Hello,

    Great work around here, I’m happy that you found a workaround to meet your needs.

    Thank you @tahoe for the documented instructions and for your interest.

    Best regards

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘blog template full width’ is closed to new replies.