• Resolved Angela

    (@angelazou)


    I have this main site I would like to bring some information (more like CMS) to my audience. So I opt to use one column template instead of having the sidebar to display all the widgets.

    However, because the page is written in multiple languages, I still want to allow the use of just one widget, the language switcher widget. I mean, perhaps I can place it in an empty widget area, and somehow configure the widget to show up on the one column scheme. The only thing that I’m not so sure about is the built-in function to use.

    I’m looking at this codex page (http://codex.wordpress.org/Widgets_API) and it doesn’t have any functions to place a specific widget area, (like maybe first top widget) into the code. So, I’d create this post. If anyone has some idea about how can I do this, please post a reply. Thanks.

    Regards,
    Angela

    FYI: here is the current PHP code used in the One Column Page

    <?php get_sidebar('top'); ?>
    			<?php
    				if(have_posts()) {
    
    					/* Start the Loop */
    					while (have_posts()) {
    						the_post();
    						get_template_part('content', 'page');
    						comments_template();
    					}
    
    				} else {
    
    					 theme_404_content();
    
    				}
    		    ?>
    			<?php get_sidebar('bottom'); ?>

  • The topic ‘Adding Language Widget to One Column Template’ is closed to new replies.