• I have created my own theme for my personal project with no sidebar. I want full page. I obviously installed some plugins to create user profiles at the front end, but the plugins file/forms don’t show up. I haven’t obviously included the necessary support.

    I need help in this.

Viewing 3 replies - 1 through 3 (of 3 total)
  • what plugins exactly do you have installed?

    does your theme have ‘wp_head()‘ and ‘wp_footer()‘ at the corresponding places (search the Codex for details..)?

    Thread Starter yatong

    (@yatong)

    I am using wp-user manager to create frontend user login and profiles.
    I will read about the codex. Thanks

    Thread Starter yatong

    (@yatong)

    Maybe you can help me here. Let me put the code here.
    header.php

    <!doctype html>
    <html class="no-js" lang="en">
    <head>
    <meta charset="utf-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <title><?php bloginfo('title');?></title>
    <link rel="stylesheet" href="<?php bloginfo('stylesheet_url');?>">
    <?php wp_head(); ?>
    </head>
    <body>
    
    <div class="top-bar">
    <div class="top-bar-left">
    <ul class="menu">
    <li class="menu-text"><?php bloginfo('name');?></li>
    </ul>
    </div>
    <div class="top-bar-left">
    <?php wp_nav_menu();?>
    </div>
    <div class="top-bar-right">
    <ul class="menu" id="login_register">
    <li><?php wp_loginout();?></li>
    </ul>
    </div>
    </div>
    
    <div class="callout large">
    <div class="row column text-center">
    <h1>Changing the World Through Programming</h1>
    <p class="lead">Upgrade Yourself.Learn Computer Programs.Best Of All, It's Free Here</p>
    <a href="#" class="button large">Learn More</a>
    <a href="#" class="button large">Learn Less</a>
    <p style="color:green;"><?php the_meta(); ?> </p>
    </div>
    </div>
     <div id="primary" class="site-content">
    
    	</div><!-- #primary -->

    footer.php

    <hr/>
    <footer>
    <div class="row expanded callout secondary">
    <div class="small-6 large-3 columns">
    <p class="lead">Offices</p>
    <ul class="menu vertical">
    <li><a href="#">One</a></li>
    <li><a href="#">Two</a></li>
    <li><a href="#">Three</a></li>
    <li><a href="#">Four</a></li>
    </ul>
    </div>
    <div class="small-6 large-3 columns">
    <p class="lead">Solar Systems</p>
    <ul class="menu vertical">
    <li><a href="#">One</a></li>
    <li><a href="#">Two</a></li>
    <li><a href="#">Three</a></li>
    <li><a href="#">Four</a></li>
    </ul>
    </div>
    <div class="small-6 large-3 columns">
    <p class="lead">Contact</p>
    <ul class="menu vertical">
    <li><a href="#"><i class="fi-social-twitter"></i> Twitter</a></li>
    <li><a href="#"><i class="fi-social-facebook"></i> Facebook</a></li>
    <li><a href="#"><i class="fi-social-instagram"></i> Instagram</a></li>
    <li><a href="#"><i class="fi-social-pinterest"></i> Pinterest</a></li>
    </ul>
    </div>
    <div class="small-6 large-3 columns">
    <p class="lead">Offices</p>
    <ul class="menu vertical">
    <li><a href="#">One</a></li>
    <li><a href="#">Two</a></li>
    <li><a href="#">Three</a></li>
    <li><a href="#">Four</a></li>
    </ul>
    </div>
    </div>
    <div class="row">
    <div class="medium-6 columns">
    <ul class="menu">
    <li><a href="#">Legal</a></li>
    <li><a href="#">Partner</a></li>
    <li><a href="#">Explore</a></li>
    </ul>
    
    </div>
    <div class="medium-6 columns">
    <ul class="menu float-right">
    <li class="menu-text">&copy; 2015 Coding Institution.All Rights Reserved!</li>
    </ul>
    
    </div>
    <hr/>
    </div>
    <?php wp_footer(); ?>
    </footer>
        <script src="js/vendor/jquery.min.js"></script>
        <script src="js/vendor/what-input.min.js"></script>
        <script src="js/foundation.min.js"></script>
        <script src="js/app.js"></script>
    	<script>
          $(document).foundation();
        </script>
      </body>
    </html>

    index.php

    <?php get_header();?>
     <div id="content" role="main">
    
    			<?php while ( have_posts() ) : the_post(); ?>
    				<?php get_template_part( 'content', 'page' ); ?>
    
    			<?php endwhile; // end of the loop. ?>
    
    		</div><!-- #content -->
    <?php get_footer();?>

    page.php

    <?php get_header();?>
     <?php while(have_posts()):the_post();?>
       <div class="post">
    				<h3 class="title"><a href="<?php the_permalink(); ?>"> <?php the_title(); ?></h3>
    				<p class="meta"> Posted By <a href="#"><?php the_author_posts_link();?></a> on <?php the_time('F jS,Y'); ?>
    				&nbsp;&bull;&nbsp;<a class="comments"href="<?php comments_link();?>"><?php comments_number('0 comments','1 comment','% responses');?></a>
    				&nbsp;&bull;&nbsp;<a class="permalink"href="<?php the_permalink(); ?>">Full Article</a>
    				<div class="entry"><a href="<?php the_permalink(); ?>" class="image image-full"></a>
    				</p>
    				<p><?php the_post_thumbnail('full'); ?></p>
    				  <?php the_content('Read More'); ?>
    			</div>
    	</div>		
    
     <?php endwhile;?>
     <?php comments_template(); ?>
    <?php get_footer();?>

    functions.php

    <?php
    //add thumbnails
    add_theme_support('post-thumbnails');
    
    //add menu
    add_theme_support('menus');
    
    //add Right sidebar
    add_action( 'widgets_init', 'theme_slug_widgets_init' );
    function theme_slug_widgets_init() {
        register_sidebar( array(
            'name' => __( 'Main Sidebar', 'theme-slug' ),
            'id' => 'sidebar-1',
            'description' => __( 'Widgets in this area will be shown on all posts and pages.', 'theme-slug' ),
            'before_widget' => '<li id="%1$s" class="widget %2$s">',
    	'after_widget'  => '</li>',
    	'before_title'  => '<h2 class="widgettitle">',
    	'after_title'   => '</h2>',
        ) );
    }
    ?>

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Plugin not supported in my custom theme’ is closed to new replies.