WordPress.org

Forums

Custom Post Template
[resolved] Gallery Theme, No drop down box (7 posts)

  1. hob1017
    Member
    Posted 3 years ago #

    Hello everyone, I am currently experiencing similar issues that other were with the plugin. More or less, I've copied the fullwidth-post.php file into the /wp-content/themes/gallery/thematic directory, but the drop down boxes still do not appear when creating posts. I've read that this plugin should be working fine in WP 3.2.1, so I wanted to verify I was entering the code correctly.

    I have tried two types of headers.

    <?php
    /*
    Template Name Posts: Snarfer
    */
    ?>
    
    <?php
    /**
     * Template Name Posts: Full Width Posts
     *
     * This Full Width template removes the primary and secondary asides so that content
     * can be displayed the entire width of the #content area.
     *
     */

    and just

    <?php
    /**
     * Template Name Posts: Full Width Posts
     *
     * This Full Width template removes the primary and secondary asides so that content
     * can be displayed the entire width of the #content area.
     *
     */
  2. Simon Wheatley
    Code for the People
    Plugin Author

    Posted 3 years ago #

    Those template headers look fine. Are you using a child theme? Are your templates in the root (bottom) folder of the theme, alongside the official templates like index.php?

  3. hob1017
    Member
    Posted 3 years ago #

    Under themes it is titled Gallery 1.5.3 by Chris Wallace for UpThemes, but I do see a folder titled thematicsamplechildtheme. So im not sure if it is considered a child theme. There are two root folders associated with this theme "gallery" and "thematic" and I originally placed it in gallery. I moved the .php file to the thematic folder and the drop down box now appears.

    There is still a side bar on the right just like the pages have. When I post an image I use the box "Path to Full-Size Image (500x375)" and put the file location, but nothing appears on the site. I can still upload/insert in the big text box, but it puts the image into the side bar.

    Im going to mess around with it a little and make sure I did some things correctly. I copied the fullwidthpage over to the fullwidth-post just like it was mentioned.

    Any thoughts? Thanks for previous post as well.

  4. hob1017
    Member
    Posted 3 years ago #

    Here is a copy of the fullwidth-post.php file. It looks like there is still a side bar, but also that possibly plugins like "sharethis" might override and place things on the side anyhow. Not really sure how all that works.

    <?php
    /*
    Template Name Posts: Fullwidth
    */
    
        // calling the header.php
        get_header();
    
        // action hook for placing content above #container
        thematic_abovecontainer();
    
    ?>
    
    		<div id="container">
    
    			<?php thematic_abovecontent(); ?>
    
    			<div id="content">
    
    	            <?php
    
    	            // calling the widget area 'page-top'
    	            get_sidebar('page-top');
    
    	            the_post();
    
    	            thematic_abovepost();
    
    	            ?>
    
    				<div id="post-<?php the_ID();
    					echo '" ';
    					if (!(THEMATIC_COMPATIBLE_POST_CLASS)) {
    						post_class();
    						echo '>';
    					} else {
    						echo 'class="';
    						thematic_post_class();
    						echo '">';
    					}
    
    	                // creating the post header
    	                thematic_postheader();
    
    	                ?>
    
    					<div class="entry-content">
    
    	                    <?php
    
    	                    the_content();
    
    	                    wp_link_pages("\t\t\t\t\t<div class='page-link'>".__('Pages: ', 'thematic'), "</div>\n", 'number');
    
    	                    edit_post_link(__('Edit', 'thematic'),'<span class="edit-link">','</span>') ?>
    
    					</div>
    				</div><!-- .post -->
    
    	        <?php
    
    	        thematic_belowpost();
    
    	        // calling the comments template
    	        thematic_comments_template();
    
    	        // calling the widget area 'page-bottom'
    	        get_sidebar('page-bottom');
    
    	        ?>
    
    			</div><!-- #content -->
    
    			<?php thematic_belowcontent(); ?> 
    
    		</div><!-- #container -->
    
    <?php 
    
        // action hook for placing content below #container
        thematic_belowcontainer();
    
        // calling footer.php
        get_footer();
    
    ?>
  5. Simon Wheatley
    Code for the People
    Plugin Author

    Posted 3 years ago #

    Your questions about images and the sidebar aren't really something I can help with, but try over in the Themes & Templates section of these forums, and I'm sure some people will be there to give you a hand.

    Glad you've got the templates issue sorted now though!

  6. manofstone
    Member
    Posted 3 years ago #

    Okay, I ran into the same issue. Here is how I fixed it.

    In wp-content/themes/gallery

    edit the style.css file

    around line 380 comment out using /* */ or delete the following entry

    .page #content{
       margin-left: 320px;
       width: 620px
     }

    hope this helps someone else with the same problem. This is where all the formatting should be modified if you are editing the gallery child theme of thematic.

  7. hob1017
    Member
    Posted 3 years ago #

    Thanks for the help. I haven't messed with my website for a little because it was hacked, but now i'm checking it.

    Did editing your style.css file like that also affect the pages you create? They seem to have odd sidebars now. Also, I've tried doing this now and testing out the posts to see if they are full-width but it just go to a blank white page.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Custom Post Template
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic