Note that there are some explanatory texts on larger screens.

plurals
  1. POWordpress widgets not displaying on custom theme
    primarykey
    data
    text
    <p>I built a custom wordpress theme, and I also built a custom widget sidebar (so widgets are enabled), I can see the title of the widget, but the content is not showing. For example I'm using a poll widget, the title is exactly as I've set it, but the content is completely blank.</p> <p>In the header the scripts for the plugin are loaded, but again there is no content. I tried multiple plugins, and they all do the same thing. I also attempted this with using do_shortcode() and again, no content. So I am stumped.</p> <p>I have also tried getting support on the wordpress forum, but I've never successfully gotten an answer to my query there.</p> <p>My hope is that someone has had this same issue, and can point me to what the problem may be.</p> <p>In the header, i've included the following information:</p> <pre><code>&lt;html &lt;?php language_attributes(); ?&gt;&gt; &lt;meta charset="&lt;?php bloginfo( 'charset' ); ?&gt;" /&gt; &lt;?php wp_head();?&gt; &lt;?php wp_meta();?&gt; &lt;?php wp_print_scripts();?&gt; </code></pre> <p>However again, no results. Google searches have also not pulled up anything about this being an issue. Here's the odd thing, I design all wordpress themes the same way, most of which are all hosted on the same server, and this is the only theme having this problem.</p> <p>Also I've included my functions.php script for reference purposes.</p> <pre><code>&lt;?php function twentyten_widgets_init() { register_sidebar( array( 'name' =&gt; __( 'Primary Widget Area', 'twentyten' ), 'id' =&gt; 'primary-widget-area', 'description' =&gt; __( 'Add widgets here to appear in your sidebar.', 'twentyten' ), 'before_widget' =&gt; '&lt;div id="spacer"&gt;', 'after_widget' =&gt; '&lt;/div&gt;&lt;/div&gt;', 'before_title' =&gt; '&lt;div id="left_top"&gt;', 'after_title' =&gt; '&lt;/div&gt;&lt;div id="left_bottom"&gt;', ) ); } add_action( 'widgets_init', 'twentyten_widgets_init' ); add_filter( 'show_admin_bar', '__return_false' ); remove_action( 'personal_options', '_admin_bar_preferences' ); ?&gt; </code></pre> <p><em><strong></em> EDIT **</strong> I removed from the header as it was causing duplicate scripts in the header. So that is no longer an issue, however that did not resolve the issue and nothing has changed as a result of being removed.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload