Viewing 15 replies - 31 through 45 (of 54 total)
  • ying

    (@yingscarlett)

    Try this CSS:

    span.posted-on time.updated-date {
        display: block;
    }
    Thread Starter Robin

    (@nioriaa)

    I think additional CSS makes a website slow. I already using so many additional CSS codes.

    Can you please help to create it with php?

    Edit the code to this:

    add_filter( 'generate_post_date_output', function( $output, $time_string ) {
    	
    $time_string = '<time class="entry-date published" datetime="%1$s" itemprop="datePublished">Published on %2$s</time>';
    
    if ( get_the_date() !== get_the_modified_date() ) {
    	$time_string = '<div><time class="entry-date updated-date" datetime="%3$s" itemprop="dateModified">Updated: %4$s</time></div>
    	<div><time class="entry-date published" datetime="%1$s" itemprop="datePublished">Published: %2$s</time></div>';
    }
    
    $time_string = sprintf( $time_string,
    esc_attr( get_the_date( 'c' ) ),
    esc_html( get_the_date() ),
    esc_attr( get_the_modified_date( 'c' ) ),
    esc_html( get_the_modified_date() )
    );
    
    return sprintf( '<span class="posted-on">%s</span> ',
    $time_string
    );
    }, 10, 2 );

    Please take note such date structure creation is possible with GP Premium and providing PHP support to create it would be out of our scope here in this forum. For further inquiries regarding this level of support, kindly reach out to us in the Premium forum.

    Thread Starter Robin

    (@nioriaa)

    Hi, I want to add the author para after blogposts.
    For example: https://prnt.sc/21zfg65bNfOU

    David

    (@diggeddy)

    Hi there,

    in the free theme, that would require a plugin – just search for Author Box plugjns – or custom development which is outside the scope of this forum.

    • This reply was modified 1 year ago by David.
    Thread Starter Robin

    (@nioriaa)

    Thank you. Is there any ready code you can provide me please?

    • This reply was modified 1 year ago by Robin.
    David

    (@diggeddy)

    As i said it would require a plugin or custom development.
    If you want to use code, then there are plenty of tutorials you can search for.

    Thread Starter Robin

    (@nioriaa)

    Got it, thanks.

    Thread Starter Robin

    (@nioriaa)

    In the customize section, there is no pencil icon so that I can customize the footer area.

    Screenshot: https://prnt.sc/tbRIgZTJSZaC

    • This reply was modified 1 year ago by Robin.
    ying

    (@yingscarlett)

    You should be able to build the widgets from appearance > widgets as well.

    Thread Starter Robin

    (@nioriaa)

    In widgets from appearance, the footer bar is empty. https://prnt.sc/hPMV3BqFvgRG
    But I want to edit the existing footer sections (customizing the writing in the footer). https://prnt.sc/tbRIgZTJSZaC

    ying

    (@yingscarlett)

    You want to edit the copyright section? If so, it requires GP Premium plugin. However, we also offer the code to change it if you don’t have GP Premium plugin:https://docs.generatepress.com/article/changing-the-copyright-message/#using-a-function

    Thread Starter Robin

    (@nioriaa)

    No, not the copyright section.
    I want to edit the paragraph section under the logo. Please see the screenshot: https://prnt.sc/tbRIgZTJSZaC

    Leo

    (@leohsiang)

    Do you see those widgets under Appearance > Widgets?

    And what’s the URL to the site in question?

    Thread Starter Robin

    (@nioriaa)

    Yes, I see those widgets and noticed that I can edit from there. But I have another website where I can edit directly from the customize section. There are available pencil icons for editing. Please see the screenshots:

    1. https://prnt.sc/wFrb1zcCdAvu 2. https://prnt.sc/C4ZIxfHp0-7B

    The URL of the site is: https://todayhealthylife.com/

    This website does not show pencil icons like the other site in the customize section.

    • This reply was modified 1 year ago by Robin.
Viewing 15 replies - 31 through 45 (of 54 total)
  • The topic ‘GP blog site customization’ is closed to new replies.