Twentig
Forum Replies Created
-
Hi,
We’ve released Twentig 1.3.1, which includes a filter hook to the post author output.
You can add the following code inside your child theme:
function custom_posted_by( $html ) { // enter your php code here } add_filter ( 'twentig_twentyone_posted_by_html', 'custom_posted_by' );If you enjoy Twentig, please rate it. It would really help me out 🙂
TomGreat!
If you enjoy Twentig, please rate it. It would really help me out 🙂
TomGreat!
If you enjoy Twentig, please rate it. It would really help me out 🙂
TomThanks for your feedback.
Indeed the Twenty Twenty-one theme removes the homepage title.
Twentig has an option to edit the “Powered by WordPress” that appears on Twenty Twenty-One. You can find it in the Customizer under Twentig Options > Footer. Select “custom” for the credit and type your text inside the custom credit field.
Hope that helps,
TomInside the wp-content/plugins repository, open the twentig/inc/twentytwentyone/footer.php file.
Line 214, replace:
<?php echo wp_kses_post( str_replace( '[Y]', date_i18n( 'Y' ), $credit_text ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>by
<?php echo do_shortcode( wp_kses_post( str_replace( '[Y]', date_i18n( 'Y' ), $credit_text ) ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>Thanks for the review 🙂
Hi Jason,
Thanks for your kind words.
We’ll add the feature to display the shortcodes pasted in the credit field in the next release. If you need to fix it urgently and you’re comfortable editing the plugin file, I can give you the PHP code to modify. Just let me know which theme you’re using (Twenty Twenty-One or Twenty Twenty).
Have a nice day,
TomHi,
The spacing is defined by the Twenty Twenty-One theme. To change the spacing for the Posts page, you can add the following CSS code in the Customizer > Additional CSS panel (change the 40px value as you like):
.tw-blog-card .hentry { margin: 40px auto; } .tw-blog-card .hentry:first-child { margin-top: 0; } .tw-blog-card .hentry:last-child { margin-bottom: 0; }Yes, the settings inside the Customizer Posts Page section only affect the blog page, not the Latest Posts block.
Hope that helps,
TomHi,
It seems that you’ve managed to display the featured image. Let me know if you still have an issue. The reduced gap between the header and the body is intended.
Have a nice day,
TomHi texjer,
Thanks for the heads-up. Glad you found a solution. We might consider it in the future.
Thanks,
TomHi Jay,
To change the background-color of the comments text boxes, open the Customizer > Additional CSS panel and paste the following code:
.comment-respond input:not([type="submit"]), .comment-respond textarea { background-color: #eee; } .comment-respond input:not([type="submit"]):focus, .comment-respond textarea:focus { background-color: #eee; }Then in the code, replace the color value with your own.
Hope that helps,
TomHi,
You can override the color palette by adding the code below inside the functions.php file of your child theme. You can either only change the variable values or completely change the array.
function my_child_theme_setup() { $black = '#000000'; $dark_gray = '#28303D'; $gray = '#39414D'; $green = '#D1E4DD'; $blue = '#D1DFE4'; $purple = '#D1D1E4'; $red = '#E4D1D1'; $orange = '#E4DAD1'; $yellow = '#EEEADD'; $white = '#FFFFFF'; add_theme_support( 'editor-color-palette', array( array( 'name' => esc_html__( 'Black', 'twentytwentyone' ), 'slug' => 'black', 'color' => $black, ), array( 'name' => esc_html__( 'Dark gray', 'twentytwentyone' ), 'slug' => 'dark-gray', 'color' => $dark_gray, ), array( 'name' => esc_html__( 'Gray', 'twentytwentyone' ), 'slug' => 'gray', 'color' => $gray, ), array( 'name' => esc_html__( 'Green', 'twentytwentyone' ), 'slug' => 'green', 'color' => $green, ), array( 'name' => esc_html__( 'Blue', 'twentytwentyone' ), 'slug' => 'blue', 'color' => $blue, ), array( 'name' => esc_html__( 'Purple', 'twentytwentyone' ), 'slug' => 'purple', 'color' => $purple, ), array( 'name' => esc_html__( 'Red', 'twentytwentyone' ), 'slug' => 'red', 'color' => $red, ), array( 'name' => esc_html__( 'Orange', 'twentytwentyone' ), 'slug' => 'orange', 'color' => $orange, ), array( 'name' => esc_html__( 'Yellow', 'twentytwentyone' ), 'slug' => 'yellow', 'color' => $yellow, ), array( 'name' => esc_html__( 'White', 'twentytwentyone' ), 'slug' => 'white', 'color' => $white, ), ) ); } add_action( 'after_setup_theme', 'my_child_theme_setup', 30 );Hope that helps,
TomHi,
To change the text width on a single page, open the Customizer > Additional CSS panel and paste the following code:
.page-id-20 { --responsive--aligndefault-width: min(calc(100vw - var(--site--padding)*2),1240px); }Then in the code, replace the page id with your own.
You can find the page id when you edit the page, its id shows up in the address bar. See screenshotHope that helps,
TomHi Richard,
Yes, you should insert an H1 when using the “No Header, No Footer” template.
Have a nice day,
TomYes the CSS is inside the Twentig plugin but it’s only the minified version of the Twenty Twenty-One style.css file. With Twenty Twenty-One, all elements which aren’t set to wide or full width take the default width. If you want to override this behavior and make all the elements inside your group wide, you can add some CSS. I see that you’ve added a custom
widewidthclass to your group. Add the following CSS inside the Customizer > Additional CSS panel:.widewidth [class*=inner-container] > * { max-width: 100% !important; }The shortcodes on your test site don’t work, so I can’t see what layout you’re trying to achieve, but the code above should work.
Hope that helps,
TomHi,
Twentig adds an option to change the H1 font size (Customizer > Twentig Options
Fonts > Page Title Font Size).To change the H2 size, you can add some custom CSS:
:root { --heading--font-size-h2: 2.25rem; } @media only screen and (min-width: 652px) { :root { --heading--font-size-h2: 3rem; } }2.25rem is the size on mobile. Change the 2.25rem and 3 rem values as you like. You can also change the 652px breakpoint value if you need.
Hope that helps,
Tom