Getting dashboard functionality into my new theme
-
I’m developing my first WordPress Theme on a local server. It is a child of 2014. My home page is basically up and running which was created using an html template I built from scratch. The header, footer, sidebar and index file and stylesheet (also some JS running a slideshow) are put together properly and functioning. There is also a custom menu I want to keep intact.
As my theme is bare bones at the moment and the content is still in html I no longer have the dashboard options such as Menu and Widgets under Appearance which were supported in 2014. I’m not sure how to continue at this point, whether I should start digging into the PHP and functions, look for plugins, or write my own Theme Options page.
Here’s the code for header and my index page to give you a visual idea of what I’m trying to say. Feedback, advice, directions are welcome.
Thank you.<!DOCTYPE html> <html xmlns="https://www.w3.org/1999/xhtml" <?php language_attributes(); ?> <!--[if IE 7]> <html class="ie ie7" <?php language_attributes(); ?>> <![endif]--> <!--[if IE 8]> <html class="ie ie8" <?php language_attributes(); ?>> <![endif]-->Ge <!--[if !(IE 7) | !(IE 8) ]><!--> <html <?php language_attributes(); ?>> <!--<![endif]--> <head> <meta charset="<?php bloginfo( 'charset' ); ?>"> <meta name="viewport" content="width=device-width"> <title>Echoes from Calvary<?php wp_title( '|', true, 'right' ); ?></title> <link title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" rel="alternate" type="application/rss+xml" /><link href="<?php bloginfo('pingback_url'); ?>" rel="pingback" /> <!--?php bloginfo('name'); ?--> <!--?php wp_title('-') ?--> <link rel="stylesheet" href="<?php bloginfo('stylesheet_uri'); ?> "type=text/css" /> <link rel="profile" href="https://gmpg.org/xfn/11"> <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>"> <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" /> <!--[if lt IE 9]> <script src="<?php echo get_template_directory_uri(); ?>/js/html5.js"></script> <![endif]--> <?php wp_head(); ?> </head> <body> <header class="top"> <div class="logo"> <h1 class="ir"> <span></span> </h1> </div><!-- .logo --> </header> <article class="primary_menu"> <nav class="menu center" aria-haspopup="true" aria-controls="p2"><!--<img src="responsive-single/submenu.gif" alt="">--> <ul id="p2"> <li class="current"><a href="index.html">Welcome</a><b></b> <li aria-haspopup="false"><a href="index.html">Care</a><b></b> <li aria-haspopup="false"><a href="index.html">Connect</a><b></b> <li aria-haspopup="false"><a href="index.html">Outreach</a><b></b> <li aria-haspopup="false"><a href="index.html">Media</a><b></b> <li aria-haspopup="false"><a href="index.html">Times + Location</a><b></b> <li aria-haspopup="false"><a href="index.html">Calendar</a><b></b> <li aria-haspopup="false"><a href="index.html">Give</a><b></b> </nav> </article>
<?php get_header(); ?> <div class="content"> <section id="slideshow"> <!-- slideshow --> <div class="slideshow"> <img alt="Liberate 2014" src="<?php echo get_template_directory_uri(); ?>/images/liberate_2014.png" width="960" height="439" /> <img alt="Declare your faith" src="<?php echo get_template_directory_uri(); ?>/images/declare_1.jpg" width="950" height="443" /> <img alt="Not a member yet?" src="<?php echo get_template_directory_uri(); ?>/images/not_member.jpg" width="960" height="443" /> </div> <header class="contact_info"> <div class="info"> <ul> <li>Text</li> <li>Text</li> <li>Text</li> <li>Text</li> </ul> </div> </header> </section><!-- slideshow --> </div> <?php get_sidebar(); ?> <?php wp_footer(); <?php get_footer(); ?> <!-- JS --> <script src="js/main.js"></script>
- The topic ‘Getting dashboard functionality into my new theme’ is closed to new replies.