Add topbar to static html page

Spencer, You can create a custom page template file for your theme which consists of your HTML page markup. You will need to include your topbar, hopefully it is in your header.php template file in which case you can use <?php get_header(); ?> to include it. Then when you add your page you will be … Read more

Unable to access WordPress admin panel

You might try renaming the folder that contains your current theme. That should get you back to a default ‘Twenty-xxx’ theme, and then troubleshoot from there. Initial thoughts are perhaps some external call via your theme to the Canva site, so that’s why you might try disabling the current theme by renaming it’s folder.

Programmatically add a custom url route “/category/index.json” to return a collection of posts in json

Turns out i was able to make it work by hooking into parse_request . add_action(‘parse_request’, ‘serve_index_json’, 0); function serve_index_json($wp) { // Exit early if not the right request if (‘my-category-slug/index.json’ !== $wp->request) { return; } $data = array(); $args = [ ‘posts_per_page’ => -1, ‘category_name’ => ‘my-category-slug’, ‘orderby’ => ‘date’, ‘order’ => ‘DESC’, ‘post_status’ => … Read more

Replacing text using add_filter

I just managed to fix it using string replacement function in php. function replace_btn_text( $more_dtls_link, $view ) { $link = htmlspecialchars($more_dtls_link); $str = str_replace(‘More Details’, ‘View Details’, $link); $new_link = htmlspecialchars_decode($str); return $new_link; } add_filter( ‘awsm_jobs_listing_details_link’, ‘replace_btn_text’,10, 2); Suggest me if I need to do any improvements here..

Navigation menu displays permalinks

Since the (#url) isn’t displayed in the source, I suspect this is being placed there by CSS with a rule like: #menu a:after { content: “#”attr(href); } If I had to guess it’s a print stylesheet run amok, possibly from a plugin.

comment awaiting moderation

No plug-in needed for this. Just open your theme files using the WordPress theme editor or via FTP. Look for the code that is being used to display the notice. It should be in the index.php file, maybe in a content.php file if your theme uses that, and in some cases it’s in your functions.php … Read more