aparente001
Forum Replies Created
-
Forum: Themes and Templates
In reply to: 2012 custom page template not finding stylesI got it to work as follows:
<?php /* Template name: My Test */ /** * My test custom page template * * * @package WordPress * @subpackage Twenty_Twelve * @since Twenty Twelve 1.0 */ get_header(); ?> <div id="primary" class="site-content"> <div id="content" role="main"> <div id="page" class="entry-content"> <p>hello from custom template</p> <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.</p> </div><!-- #page --> <?php while ( have_posts() ) : the_post(); ?> <?php get_template_part( 'content', 'page' ); ?> <?php comments_template( '', true ); ?> <?php endwhile; // end of the loop. ?> </div><!-- #content --> </div><!-- #primary --> <?php get_sidebar(); ?> <?php get_footer(); ?>
The key was
<div id="page" class="entry-content">
Forum: Themes and Templates
In reply to: 2012 custom page template not finding stylesThank you for responding! Here is what is in my custom page template (this is my first time posting code, hope it works!):
<?php /* Template name: My Test */ /** * My test custom page template * * * @package WordPress * @subpackage Twenty_Twelve * @since Twenty Twelve 1.0 */ get_header(); ?> <div id="primary" class="site-content"> <div id="content" role="main"> <p>hello from custom template</p></br> <?php while ( have_posts() ) : the_post(); ?> <?php get_template_part( 'content', 'page' ); ?> <?php comments_template( '', true ); ?> <?php endwhile; // end of the loop. ?> </div><!-- #content --> </div><!-- #primary --> <?php get_sidebar(); ?> <?php get_footer(); ?>
Forum: Fixing WordPress
In reply to: form validationNikki,
I’m not using woocommerce.
I think you could post your question in the plugins area, or in the woocommerce support area. At any rate I don’t think it helps my chances of getting help with my question when you come in and post your own tangential question in my thread!
Good luck getting help with your problem.
Forum: Fixing WordPress
In reply to: javascript not working in page or postAack! I wasn’t finished typing! Let’s try again.
I don’t think you can put the javascript code directly in the admin side of the page or post. I think you have to put it in a separate file which will go inside the js folder. And then in the functions.php file, you give the instructions how to find that file.
Apologies if this is wrong — I’m trying to figure out how to put javascript in myself.
Forum: Fixing WordPress
In reply to: javascript not working in page or postBjerre, I think the part you missed was this:
Then you need to copy hidden.js from ‘https://bjerreandersen.dk/kom/hidden.js’ to ‘wp-content/themes/good-bones/js’Forum: Plugins
In reply to: Subscribe2 not sending emails but used toI had this problem and then I discovered the email messages were hiding in my sent box. Hope that helps.
Forum: Plugins
In reply to: [TablePress - Tables in WordPress made easy] User submitted entry in tableYour idea is intriguing. Where can I read a simple how-to for your idea?
I’m using Guest Post for the posts, which are community announcements, but I was hoping to allow visitors to edit the tables (subject to moderation). Some of the tables have hundreds of entries.
Forum: Plugins
In reply to: [Konverto] Plugin removes linksAack! I too lost all my normal links. I had to deactivate.
Forum: Plugins
In reply to: [Guest Posts] safety?Tweak theme — I don’t mind digging in, but can you give me a starting point, please? Thank you!
Forum: Plugins
In reply to: [Guest Posts] safety?Okay, I see what you mean. Thanks for responding quickly.
I would like an email to go out to the administrator, saying that a guest submission has been received.
Can you help me make this change?
Name, email and (optionally) website are captured in the form. How do I make them show up in the posts page?
Thanks.
Forum: Themes and Templates
In reply to: help, no comments!Just to wrap this up. I did the filter thing you suggested and looked at how one of the themes I found there called the comments template. I made a simple change to my page.php and voilà, my comments form is now appearing. I replaced
`<?php /* Enable/disable comments in pages */
if( get_option(‘of_pages_comments’) == ‘true’) { ?>
<?php comments_template( ”, true ); ?>
<?php } ?>`with
<?php comments_template( '', true ); ?>
I don’t understand this code well enough to say why this fixed it, but it did, and I’m happy.
Forum: Themes and Templates
In reply to: help, no comments!Thank you.
Forum: Themes and Templates
In reply to: help, no comments!I guess I’ll have to start over and not base my theme on anything from blankthemes.com. Do you have a suggestion? I need a left sidebar and a right sidebar. Thank you.
Forum: Themes and Templates
In reply to: help, no comments!Hmm, can’t seem to edit my post. Here’s a better paste of the code:
<?php /* Enable/disable comments in pages */ if( get_option('of_pages_comments') == 'true') { ?> <?php comments_template( '', true ); ?> <?php } ?>
Never mind, I found it in usp.css. I changed the 20% to 30% in the line
div#user-submitted-posts fieldset label { float: left; width: 30%; }Thanks anyway.