how to make the link of comment section “nofollow” safely?

to customise the link “You must be logged in”, you can use that in your template : comment_form([ “must_log_in” => “<a href=\”https://wordpress.stackexchange.com/questions/18007/\”>a question about unicorns</a>”, ]); other arguments are detailed in the official documentation : https://developer.wordpress.org/reference/functions/comment_form/

link a page I created as a under construction and link it to the menu

I believe setting the coming soon as the shop page will accomplish what you want but I may be misunderstanding what you want accomplished. To set the WooCommerce shop page, navigate to WooCommerce > Settings and click the Products Tab. In the section labeled “shop page,” click the dropdown and choose your coming soon page.

WordPress links only showing as text on main blog page

By default, WordPress removes all HTML from automatic excerpts, preventing links from being displayed. To include links or other HTML elements in excerpts, you can set manual excerpts by simply adding the desired tags. If setting manual excerpts for each post isn’t feasible, you may consider using a plugin to customize excerpts automatically.

Detect post title(s) in content and automaticly linking

You can achieve your desired result with the help of given code which needs to be added to functions.php file of your theme. The given code will automatically convert plain text titles in your post content into links pointing to the corresponding posts. <?php function auto_link_post_titles( $content ) { // This is to get all … Read more

Nofollow the date/time hyperlink in comment

Modifying core WordPress files, like class-walker-comment.php, is generally not recommended, as your changes will be overwritten with each WordPress update. Instead, you can achieve the same effect by using a child theme and custom functions. This way, your modifications remain intact across updates. I tried a few different things but I was able to get … Read more

Setting “Open in New Tab” for Link Control to be checked by default

You have to watch editor changes, you can hook the js to ‘enqueue_block_editor_assets’. your-child-theme/js/default-open-in-new-tab.js wp.domReady(() => { //console.log(“Custom script loaded”); const { subscribe } = wp.data; //we want to subscribe to changes of the editor // Helper function to determine if a URL is external const isExternalLink = (url) => { try { const domain … Read more

How to get default variation ID (woocommerce)

Try this code add_filter(‘woocommerce_variable_price_html’, ‘custom_variation_price’, 10, 2); function custom_variation_price( $price, $product ) { $available_variations = $product->get_available_variations(); $selectedPrice=””; $dump = ”; foreach ( $available_variations as $variation ) { // $dump = $dump . ‘<pre>’ . var_export($variation[‘attributes’], true) . ‘</pre>’; $isDefVariation=false; foreach($product->get_default_attributes() as $key=>$val){ // $dump = $dump . ‘<pre>’ . var_export($key, true) . ‘</pre>’; // $dump … Read more

Remove links to the comments section

Add this to your theme functions file: // This will occur when the comment is posted function plc_comment_post( $incoming_comment ) { // convert everything in a comment to display literally $incoming_comment[‘comment_content’] = htmlspecialchars($incoming_comment[‘comment_content’]); // the one exception is single quotes, which cannot be #039; because WordPress marks it as spam $incoming_comment[‘comment_content’] = str_replace( “‘”, ‘&apos;’, … Read more

Permalink issue with new blog posts > getting 301 redirect

Your WordPress site is set up to include the date in the permalink structure for blog posts. To avoid the 301 redirects and have your desired permalink structure https://website.com/sample-post/ In the Permalink Settings page, you’ll see several common options for permalink structures. Choose the Custom Structure option: In the input field, enter /%postname%/ after save … Read more