I set my frontpage to “Latest Posts”. I love that layout. How do I add a news slider above them in the home content section?
Hi here is the complete guide to dw focus http://designwall.com/guide/dw-focus/
http://cmspioneer.com/designwall/guide/dw-focus/#available-widgets
.
Ok @Jessica in that case you will have to create a custom widget area in your theme function.php and then call it to action on single.php or index.php or where ever you would like to show your widget .
place the codefor creating a new widget area given in link to article(see link below) before <? while (have posts…. ?> kinda thing which is the loop to pull up the posts from the database here is the link which describes how to create a custom widget area and how to call it to action
Hi jessica when i created the widget area last time i was able to drop and use any widget i would like to use in the new custom widget area and it works fine,what you need to do is just goto>>appearance>>widgets>>drag and drop the widget named dwfocus news slider in to the new widget area
as if text widget is working there then any other widget will also work fine.
Two questions for you:
1.Did you tried putting the news slider widget in the new widget area and selected the “all categories” in the widget settings itself?
2.whats the name of the new widget area you just created it should be (my_widget_area) if you dint changed the name to your own choice.
.
.
what is the name you gave to the new widget area?
<?php
if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('my_widget_area') ) : ?>
<?php endif; ?>
remember in above code "my_widget_area" should be replaced by the new widget area name you gave and dont use spaces in between the name underscores are recommended.
Plus can you tell above which line of code did you placed the above code in your index.php a screenshot will be very helpful in understanding whats going on
@jessica that article is saying it as an example that if you want the widget for a top navigation then you have to place it in header in your case you want to place a widget in the main index page of your site just before all your post thus you have to place the code in Index.php and not in the header.php just try it and tell me if it resolves your issue.
.
and by title here i dont mean the title you set in widget settings what i mean is the name which is been set in code while creating it thats “my_widget_area” in both the code snippets make sure they are same in both the code snippets the one you are using in function.php and the one in index.php
.
Hi just try placing the code at the end of the header.php
this will show your slider widget just after the navigation will that be fine with you?
or place it on line 16 of the same file thats index.php you have to see where you want it to appear
.
.
.
.
Ok jessica i checked your website i think placing the code just after <div class=”main”> and just before <div class=”container”> in index.php should sort out your problem if not then only designwall team could help you in the matter thanks.
the css may be conflicting plus i see that the slider is uded to display news from your site you may want to have a look at these plugin settings as well DW Focus: Featured News Settings,DW Focus: Popular News Settings,DW Focus: News Carousel Settings,they all use featured images thus make sure all the articles you are using in the featured article has a featured image set as well in post settings!!!
,
.
And here is another good read you may like to have http://designwall.com/question/the-widget-widget-dw_focus_top_posts-in-the-header-doesnt-show-correctly/
Hi Jessica.
We have answered this issue at the following link: http://designwall.com/question/how-do-i-add-a-content-bar-with-a-custom-title-above-my-latest-posts-on-my-homepage/
Hope this helps!
.
Please login or Register to submit your answer