somto
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Shapebox] how to remove the feature image on blog posts pagesNothing yet. I am still using it like that.
Forum: Themes and Templates
In reply to: [Shapebox] how to remove the feature image on blog posts pages@alxmedia Thanks for the feedback.
What I need is just the title, other stuffs and no thumbnail.
I will see if I can fix that, I will use the child theme to try it out.
Thank you once again for this elegant theme.
Alright. I am eagerly looking forward to that.
Thanks for the feedback.
It will be nice if the plugin can detect the screen size and load or prevent the widgets from loading.
Thanks for the response, once moreForum: Plugins
In reply to: [Rank Math SEO – AI SEO Tools to Dominate SEO Rankings] Rankmath TOC toggle@samwp1 I glad it helped you
Hope you are using child theme to add custom codes on your site for flexibility
Forum: Plugins
In reply to: [Rank Math SEO – AI SEO Tools to Dominate SEO Rankings] Rankmath TOC toggleThanks to Rank Math Team for this wonderful gift that keeps giving.
@samwp1 I modified the codes provided on this page https://rankmath.com/kb/table-of-contents-block/ to make my table of content expanded by default, then added little tweaks to match my blog theme. I hope you will find the modifications helpful.
So, here are the codes and the modified versions
Original function code:
/** * Convert Rank Math FAQ Block Into Accordion */ function turn_rm_toc_collapsable() { ?> <script> jQuery(document).ready(function() { var tocItems = jQuery("div.wp-block-rank-math-toc-block"); tocItems.bind("click", function(event) { var nav = jQuery(this).find("nav"); if (nav.css("overflow") == "hidden") { nav.css("overflow", "visible"); nav.css("max-height", "100vh"); } else { nav.css("overflow", "hidden"); nav.css("max-height", "0"); } }); }); </script> <?php } add_action( 'wp_footer', 'turn_rm_toc_collapsable' );Modified function code (to be added in functions.php):
/** * Convert Rank Math FAQ Block Into Accordion */ function turn_rm_toc_collapsable() { ?> <script> jQuery(document).ready(function() { var tocItems = jQuery("div.wp-block-rank-math-toc-block"); tocItems.bind("click", function(event) { var nav = jQuery(this).find("nav"); if (nav.css("overflow") == "visible") { nav.css("overflow", "hidden"); nav.css("max-height", "0"); } else { nav.css("overflow", "visible"); nav.css("max-height", "100vh"); } }); }); </script> <?php } add_action( 'wp_footer', 'turn_rm_toc_collapsable' );Here is what the modified function above does:
When the user clicks on the table of content heading, the code checks if the table of contents is set to visible in the CSS declaration, if yes it will hide the table of content. If no, the table of content will remain visible.
Meanwhile, in the CSS that I modified, I set the table of contents to be visible by default.
Original CSS code:
.wp-block-rank-math-toc-block { position:relative; } .wp-block-rank-math-toc-block h2 { background: #f1f2f6; padding: 10px 12px 10px 18px; cursor: pointer; font-size: 18px !important; font-weight: normal !important; position:relative; margin-bottom: 0; } .wp-block-rank-math-toc-block h2:before { display:inline-block; content: ""; width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 12px; border-color: transparent transparent transparent #000000; margin-right: 8px; } .wp-block-rank-math-toc-block nav{ padding: 10px 10px 0px 10px; max-height: 0; overflow:hidden; } .wp-block-rank-math-toc-block input:checked+h2~nav { max-height: 100vh; overflow:visible; }Modified CSS code (To be added in customizer or child theme):
/*Rank Math Table of content*/ .wp-block-rank-math-toc-block { position:relative; } .wp-block-rank-math-toc-block h2 { /*Changed the background color to match my theme*/ background: #1c232f; padding: 10px 12px 10px 18px; cursor: pointer; /*Increased the font size*/ font-size: 20px !important; font-weight: 600 !important; position: relative; /*Add bottom margin and border to the toc heading*/ margin-bottom: 15px; border: solid 1px; } .wp-block-rank-math-toc-block h2:before { display:inline-block; content: ""; width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 12px; border-color: transparent transparent transparent #f7f7f7; margin-right: 8px; } .wp-block-rank-math-toc-block nav{ max-height: 100vh; overflow:visible; } .wp-block-rank-math-toc-block input:checked+h2~nav { padding: 10px 10px 0px 10px; max-height: 0; overflow:hidden; }i have tried to update the snippet while deactivated, but it broke my site with error 500
Forum: Plugins
In reply to: [Heroic Table of Contents] how to change the numbering of the nested headingsThanks for your reply
I was able to do it with the help off css codes I found onlineYou take a look on the page initially posted to see how it looks
Forum: Themes and Templates
In reply to: [Incolor] Excerpt word count on blog home page not workingForum: Themes and Templates
In reply to: [Incolor] Excerpt word count on blog home page not workingok. let me check it out
Forum: Themes and Templates
In reply to: [Incolor] Excerpt word count on blog home page not workingok now I get it. The excerpt count feature is designed to work perfectly with excerpts taken from the first paragraph of the posts and not the custom excerpt/meta description.
please is there a way I can make it to use my custom excerpt/meta description, because for SEO reasons, I can’t be removing custom excerpt
Thanks again for your response so far @alxmedia
Forum: Themes and Templates
In reply to: [Incolor] Excerpt word count on blog home page not working@alxmedia
the full excerpt displays. even if I set it to 1.
I need the except to cut end with read “more” or “…”
once the slider value is greater than 0, the full excerpt shows not minding the value I set it toForum: Themes and Templates
In reply to: [Incolor] Excerpt word count on blog home page not workingThanks for you response @alxmedia
Yes, I previously set it to 0 so that excerpt doesn’t display. But now I want to display excerpts but is not working.
Even after using the reset icon/button to get it back to the default (20)Forum: Fixing WordPress
In reply to: WordPress problems after installing the latest versionIssue resolved
Forum: Fixing WordPress
In reply to: WordPress problems after installing the latest versionWao I changed my php version from 7.4-bx-optimized to version 7.4 and everything worked.
@sterndata thanks a lot for this great support