Highlight the links without using dropdown

SOLUTION I found it by using the <?php wp_list_pages( $args ); ?> with customizing the args to display only selected children by id. $args = array ( ‘title_li’ => ”, ‘child_of’ => $post->ID, ‘include’ => 47 ) <h4> <?php wp_list_pages( $args ); ?> </h4> and setting the css to target the current and its parent … Read more

Adding function to child theme’s function.php

You can’t recall the same function or PHP will throw an error. Make your own function and call the same action hook, but give it a priority of 1 which should overrule the parent theme function. function custom_oblique_post_link_to_single() { if ( ! get_theme_mod( ‘read_more’ ) ) :?> <a href=”https://wordpress.stackexchange.com/questions/282703/<?php the_permalink(); ?>”> <div class=”read-more”> <?php echo … Read more

How to make home widgets appear horizontally

Use CSS3 flexbox to control layout of widgets. First, wrap widget divisions in a container division <div class=”widgets-container”>. Add a unique class to each widget division ( in our example: widget-1, widget-2, and widget-3 ). Example code: <div class=”widgets-container”> <div class=”widget-1″> <!– widget-1 code below –> <h2>Widget 1</h2> </div> <div class=”widget-2″> <!– widget 2 code … Read more

HTML Form Submit to table in same page

Couple of things with this. Your action attribute is empty. That’s the attribute that tells the browser where to send the posted form data. Should be a field or if you’re using AJAX, I always put # in there and let the javascript do it’s thing. Not sure about the cf_name attribute in your input … Read more

Whitespace Before Doctype

Remove ?> in the end of all php files in your theme or plugins. Download WP archive and copy it to your working directory with replacing all files. It will replace all core WP files, so if there was a whitespace added – it will be removed.

Custom CSS is not working?

There’s no et_pb_row_2 classes being used on that page only et_pb_row_1. Same thing applies to the class et_pb_section_2.

Convert bookmarks.html file into WP posts

UPLOAD The simplest way would be to use a form plugin. People like Contact Form 7, WPForms, other people like Gravity Forms. If you want the uploads to be from WordPress users only. You can hide the form in a password page, generate forms through shortcode on PHP conditional. etc. You can create your own … Read more

display text on the same line

Note that the_author_meta() doesn’t return the meta value, but echoes it. That’s why the name is suddenly outside the <p> element. Use get_the_author_meta() if you need to return (and do something with) the field, rather than just display it. I’d highly recommend you to change your use usage of __() too, because that is not … Read more