Forum Replies Created

Viewing 15 replies - 91 through 105 (of 105 total)
  • Thread Starter aparente001

    (@aparente001)

    I 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">

    Thread Starter aparente001

    (@aparente001)

    Thank 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 validation
    Thread Starter aparente001

    (@aparente001)

    Nikki,

    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.

    Aack! 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.

    Bjerre, I think the part you missed was this:
    Then you need to copy hidden.js from ‘https://bjerreandersen.dk/kom/hidden.js&#8217; to ‘wp-content/themes/good-bones/js’

    I had this problem and then I discovered the email messages were hiding in my sent box. Hope that helps.

    Thread Starter aparente001

    (@aparente001)

    Your 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.

    Aack! I too lost all my normal links. I had to deactivate.

    Forum: Plugins
    In reply to: [Guest Posts] safety?
    Thread Starter aparente001

    (@aparente001)

    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?
    Thread Starter aparente001

    (@aparente001)

    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.

    Thread Starter aparente001

    (@aparente001)

    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.

    Thread Starter aparente001

    (@aparente001)

    Thank you.

    Thread Starter aparente001

    (@aparente001)

    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.

    Thread Starter aparente001

    (@aparente001)

    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 } ?>
    Thread Starter aparente001

    (@aparente001)

    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.

Viewing 15 replies - 91 through 105 (of 105 total)