hinduismfacts
Forum Replies Created
-
I am also having the same problem. The problem started with the WP 5.7 upgrade.
I had to uninstall the plugin.
Forum: Themes and Templates
In reply to: Twenty Eleven Child Theme not workingThanx Jan, it resolved on its own.
It is displaying the code itself like “related_posts().” I have changed the theme to twently eleven and using child theme for it now.
Forum: Themes and Templates
In reply to: Twenty Eleven Child Theme not workingThanx a lot, it worked. The only problem is, it is showing pages in the header menu as well as sidebar but I want pages to be in the sidebar only. Original theme does not have pages in header. Currently, I have removed pages from sidebar. Do you know how to fix it?
Forum: Themes and Templates
In reply to: Twenty Eleven Child Theme not workingThanx guys for your quick response. I made all the changes suggested by you but still no success. The new code looks like this:
_______________________________________________________
/*
Theme Name: Twenty Eleven Child
Theme URI: https://hinduismfacts.org
Description: Child theme for the Twenty Eleven theme
Author: Rahul
Author URI: https://hinduismfacts.org
Template: twentyeleven
Version: 1.0
*//* Import layout */
@import url(“../twentyeleven/style.css”);
__________________________________________I have tried with and without quotes in the import statement. I tried removing /* Import layout */ statement also.
I found the code the_content() in loop-page.php. I pasted related_posts() there but it didn’t show up.
Hi Mitcho, I am getting nothing in pages. I could not find the_content() in page.php. Here is the code of page.php:
___________________________________________________________________
<?php
/**
* The template for displaying all pages.
*
* This is the template that displays all pages by default.
* Please note that this is the WordPress construct of pages
* and that other ‘pages’ on your WordPress site will use a
* different template.
*
* @package WordPress
* @subpackage Twenty_Ten
* @since Twenty Ten 1.0
*/get_header(); ?>
<div id=”container”>
<div id=”content” role=”main”><?php
/* Run the loop to output the page.
* If you want to overload this in a child theme then include a file
* called loop-page.php and that will be used instead.
*/
get_template_part( ‘loop’, ‘page’ );
?>
</div><!– #content –>
</div><!– #container –><?php get_sidebar(); ?>
<?php get_footer(); ?>
_______________________________________________________Can you tell me where exactly should I copy the code?
Hi Mitcho, thanx for your response.
I put related posts() in page.php template but still it is not working for pages.
Hi Mitcho, I also have the same problem.
By single page template, do you mean single.php or page.php?
I need to add related posts() or related posts();
Thanx in advance.
Forum: Fixing WordPress
In reply to: How to remove extra spaces permanently?Thanks Josh but I think the solution you have given is for spaces between paragraphs. Another thing is that there are more than 300 posts and pages from which I want to remove the extra spaces given after fullstops and colons. I want to remove them in one go. By your solution, I would need to open each and every post.
Please correct me if I am wrong.