Free Premium Theme - Newsweek WordPress Theme

2008 August 1

Update: 26-08-08 - Bhavesh has dropped me an email informing me that there will be a steady version for download very soon.

Downloaded a Free Premium Theme for my other blog which I am in the midst of re-structuring to focus on Doing Business Online. It used to be a personal rant blog and it was my first blog in a self hosted server. The theme I downloaded was code named the Newsweek WordPress Theme by PremiumThemes dot net. I am happy with the theme, but I wasn’t happy with the download being put up by the owner.

I do not know if R.Bhavesh (the owner) realized it, but the version he put up for download is, I suspect, the demo version instead of the full working version. When I activated the theme,

  • The Sidebar widgets was not available because the Functions php was not included in the folder.
  • The Featured Post in the front page contained a static post and image used for showcasing purposes.
  • The division class for the Ad Blocks were not properly inserted.

All these don’t seemed to be coding “mistakes” but more like done on purpose for demonstrating the theme so he do not need to do a “real” post for the Demo page. I am saying this because it is an extremely smooth running theme once I placed in all the “missing” codes.

First, the dynamic sidebar which supports widgets. This tip might be useful for those who has a theme that has not been widgetized, though I believe most themes nowadays comes with sidebar widgets as default. The small piece of code to make the sidebar dynamic is

<?php if ( function_exists(’dynamic_sidebar’) && dynamic_sidebar(1) ) : else : ?>

If you have 2 sidebars then you have to specify the sidebar number at the end of the code inside the barckets. In this example,  this will be inserted into sidebar number one, whichever sidebar you prefer so when you open your Widgets page in your Dashboard, you will know what widgets goes where.  It should be placed in your sidebar php where you want the dynamic sidebar to start.

The codes were present in the sidebars of the Newsweek Theme, BUT, to make the sidebars dynamic, we must have a Functions php file to call up the function and that was missing from the download folder. Fortunately, that was not a big problem. All we have to do is to create one.  Open your notepad and type in this codes

<?php
if ( function_exists(’register_sidebar’) )
register_sidebars(2);
?>

The 2 stands for 2 sidebars. Save it as Function with a php extention so it becomes functions php.  Upload this file to your server where the theme’s folder is located. Once that is done, you should be able to use the sidebar widgets.

Now, the Featured Article excerpt in the front page of the Newsweek Theme. There is am image included which I think is suppose to be inserted via the Custom Filed as in most magazine style theme. This however has been altered to make a static post appear together with am image from the theme’s image folder. To make the “Featured Article” excert work and include an image of my choice, I inserted these codes so I can use the Custom Fields function available but rarely used in WordPress just after the Featured Article  <div class=”listings”> in the Index php,

<?php if(get_post_meta($post->ID, “thumb”, true)) {
$size = getimagesize($_SERVER["/wp-content/uploads"].get_post_meta($post->ID, “thumb”, true)); ?>
<img src=”<?php echo get_post_meta($post->ID, “thumb”, true); ?>” alt=”" width=”<?php echo $size[0]; ?>” height=”<?php echo $size[1]; ?>” />
<?php } ?>

The word “thumb” will be the custom fields key and the location where you uploaded your image will be the value. Normally for WordPress the default location will be www.yourdomian/wp-content/uploads/date/filename.  So all you have to do if you want to add in a custom image for the Featured Post excerpt in the Front Page is to upload the image in your post editor, copy the URL where it has been uploaded and paste it in the Value box in the Custom Fields option just below your post editor. Remeber also to type in the “key” which in this case is “thumb” as indicated in the codes above.

To specify the category which you want appearing as featured post, add in this line of codes just beneath what you have inserted just now.

<?php if ( in_category(’123′) ) ?>

Replace the number 123 with your own category number, obtained by going to your Categories Page and hovering your mouse over that category. You can see the category number at your browsers bottom bar.

Then of course you will need to show the Post Title, the Dates and so on. All this is achieved by adding these jumble of codes.

<h2 id=”post-<?php the_ID(); ?>”><a href=”<?php the_permalink() ?>” rel=”bookmark” title=”Permanent Link to <?php the_title(); ?>”>
<?php the_title(); ?>
</a></h2>
<?php the_excerpt(); ?>

<a href=”<?php the_permalink(); ?>” class=”readmore”>Read More >></a>

Paste these codes all in the same place one after another should make the “Featured Article” excerpt in the front page of the Newsweek WordPress Theme work nicely. You can see a working version in my Homebased Business blog. Sorry, I have moved this blog and it is not viewable anymore. :-)

Download The Newsweek WordPress Theme

Related Topics

38 Comments leave one →
2008 August 2

Dude, can’t thank you enough for this post.

I had been looking for ages for a business week like theme and when I finally found one, it was full of bugs.

I will try to fix them but your post will be extremely helpful.

Thanks

[Reply]

Costa Reply:

No problem mate, if you face any difficulties, let me know.

[Reply]

2008 August 2

Hey Costa, I have posted a detailed input on this theme in the forum here -

http://premiumthemes.net/forums/viewtopic.php?pid=219#p219

Can you please check and give me a reply.

I can continue to talk here to you can email me at -

ask@techbanyan.com

Thanks a lot!!

[Reply]

2008 August 2

>>I can continue to talk here to you can email me at -

I meant to write, I can continue to talk here OR you can send me an email or we can discuss in the forums in premiumthemes…just let me know when u give a reply.

Thanks!!

[Reply]

Costa Reply:

Hi, TDrun,

Lets just talk here so all my other readers can benefit. :-)

As for the questions you posted.

1. The “404 page not found” page in the site is giving Php errors

The 404 page error messages will disappear once you have created and uploaded the functions php to your server as described in this post. In place will be the left sidebar as it is denoted as such in the 404 Template (404 php)in your Theme Editor.

2. In the admin tab, the Design Tabb >> Widgets tab does not show the widgets. Will we have to edit the file everytime to display different widgets?

No you don’t. Everything will be fine after the Functions.php is uploaded.

3.The original business week website, the top header has categories. Is that possible to introduce in this as well?

That would involve some work and it will involve many more codes. Maybe the designer might be willing to do it for a fee. Since it is a free Theme, I think I can live without those. Anyway, unless your site is a news portal where you want to list out the different news section, why do we need categories listed out in the header navigation anyway? I even removed the categories section in my sidebar LOL.

4. What is the best way to include ads? I can’t find how to include my ads in the theme. How to deal with ads2.php

Don’t bother with the ads. php. It’s an orphan without any parents. LOL.

To include the ads in the header, look for these codes,

img src=”< ?php bloginfo('template_url'); ?>/images/advt_468×60.png” alt=”" class=”advt_top”

Remove the whole line together with the enclosing brackets that I have not included here.

In the same place, do this,

div class=”advt_top” (enclosed within < and >)

Your Ads Codes

/div (enclosed within < and >)

Likewise for the Ads in Sidebar 2.

[Reply]

2008 August 3

Yes, we should talk here so others can also learn. Could you please remove my email from the 2nd comment from top, spammers might pick it up from there.

========

1. Regarding the 404 error, I made this change to have it working.

The 404.php file will have this line of code at the near bottom-

I changed it to:

Now it works.

[Reply]

2008 August 3

Posting code here again - I changed the following to have 404 page working:

[Reply]

2008 August 3

Instead of this code in 404.php ?php get_sidebar();?

Put this

?php include (TEMPLATEPATH . “/sidebar1.php”); ?
?php include (TEMPLATEPATH . “/sidebar2.php”); ?

[Reply]

Costa Reply:

I removed all the sidebars. :-)

[Reply]

2008 August 3

Costa, new question:

1. In the top header space, I would like to include 728 X 90 ad-space.

This is not coming correct as the ad is getting hidden.

Could you test this and find out how to make 728 X 90 ad work at the top header.

Thanks

[Reply]

Costa Reply:

Please refer to my answer to your question 4 on top.

[Reply]

2008 August 3

Another question:

2: In the Search, the “Go” button is just an image and does not start the query. How to convert this to a Submit function.

[Reply]

Costa Reply:

Ahh.. I missed this one. LOL.

Anyway, the default codes do not include that se[erate submit function and to have that function working means another whole strings of codes, images and so on. Normally when searching, all they have to do is to type in the query and hit “Enter”

So the workaround is to change the text inside the Search Box and remove the “GO” image altogether so your readers will not make the mistake of clicking on that non functioning button.

To make that change, open your Searchform.php file in your Theme Editor and replace the words, “Search Here…” in every instance, to something else like “Type And Hit Enter..” or whatever you feel is appropriate.

Then go to your style sheet, scroll down until you find this division - #searchform .sgo

Remove the background url image. The misleading “Go” image will be gone.

[Reply]

2008 August 4

Costa, this theme is full of bugs man.

1. The quote option doesn’t work good in IE but works fine in Firefox. Steps to replicate - Create a quote in a post. View it in IE. The words get chopped up.

2. The numbering doesn’t work good. In the post, create 1., 2., 3., points, they come out as bullets and not as numbered sequence.

3. The bullets points and the paragraph, there is no space allowed between the last bullet point and rest of the article.

I think the Theme designer did a very very poor quality work on this beautiful theme.

4. I don’t want my latest article to be the featured article. I want any of the previous articles to be one of the Featured articles. How to accomplish this.

[Reply]

2008 August 4

View this link in IE to see the above bugs:

http://www.techdrummer.com/36/testing-the-new-post

[Reply]

2008 August 4

Costa, this is for your website’s statistics:

http://tools.pingdom.com/?url=http://www.ahpek.com/2008/08/03/what-can-you-expect-from-business-online/&treeview=0&column=objectID&order=1&type=0&save=false

Check the above link where I found the missing .png being called in the theme and which do not have been created. Also, look at the load time, anything above 3-4 seconds is not good.

[Reply]

Costa Reply:

T,

I do not feel we have to be over paranoid about stats like this. It is quite impossible to keep it at “professionally” accepted level. I never ever look at these kind of stats. If I do I will never get anything done. LOL

[Reply]

2008 August 4

Hey Costa,

I have updated my site with the Newsweek theme. Check it out from here - http://www.techbanyan.com

Thanks for the support.

We should look to develop more widgets and features for this theme.

Keep me updated.

[Reply]

Costa Reply:

No, I don’t think it I will be doing anything else other than doing or adding things that suits my personal need for this theme. LOL. I don’t know how long I will be using it anyway. :-)

[Reply]

2008 August 7

Hi, Costa,

Vedis here.

Could you just correct all the bugs and let us new bies download the bug-free theme? How I wish…;D

I’ll try. Scared lar for those codes.

[Reply]

2008 August 7

Hi, Costa,

I uploaded the functions.php. I saw the function.php at the Design –> Theme Editor.

But my Widgets still shows No Sibebars Defined. Don’t know what’s wrong?

Thanks

[Reply]

Costa Reply:

Hi Vedis,
Did you copy the right piece of code? It is the second piece in my post above you know?
Just to make sure, check if you saved it as functions.php that is functions with an “s” I don’t know if this could be the reason.

When you copied the codes, did you add the number “2″ in the last bracket?

If you copied the right codes, saved it in the right place and you did not alter anything in the sidebars, it should work.

[Reply]

2008 August 19
Alext

this is a great post. im been trying to fix this theme for awhile — it seems like youve had better luck. as someone else requested — any chance you could post the fixed version for us to download ;) ? thx!

[Reply]

Costa Reply:

Hi Alex,

Nah.. I don’t think I’ll do that. There are browser compatibility issues as well with this theme. Maybe you can check back to see if the designer has updated the download, else why not just use another theme. Saves you a lot of heartache. :-)

[Reply]

2008 August 26

The theme looks great. I may actually use this on a brand new blog :D

-Mike

[Reply]

2008 September 1

If this question has already been addressed I apologize. How can I get all links to be “clickable” with the latest articles on the front page section?

[Reply]

Costa Reply:

Hi Greg,

I don’t quite get your question. As far I can remember, the default settings will show excerpts of all your latest post in the front page and the permalinks or titles of all the shown post are “clickable”.

Or do you mean the links you inserted in your post? If that’s the case, I have no solution to that. All formats are automatically removed if post excerpts are used in WordPress. So far I have not heard of any workaround for this issue. Maybe there is a plugin or codes you can add somewhere, but I have never searched for it.

[Reply]

2008 September 1

Sorry for the confusing on this question.

What I am asking is, how can I get any html link that I put into a post to usable/clickable. Although they do become usable when you click the read more link in the right hand corner of the post.

If you are still confused to a look at EdlineNews.com and you will see what I am talking about.

[Reply]

Costa Reply:

Hi Greg,

Ok, I see what you mean, and like I said in my previous answer, I don’t have a workaround for this problem. All formattings, be it html, or images are automatically discarded when you utilize the excerpts, or the “read more” function in WordPress.

You might be able to do it using the custom fields like you do with images, but I have never tried it.

In my opinion, the way it is, is great as it encourages your readers to click on the actual post’s permalinks and it increases your page views.

[Reply]

2008 September 22
Robert

Thank you Costa for the grat post. What a shame for the theme’s author!
I see anyone is talking, linking but no one running this theme. Is that so buggy?
I can not run sidebars (another shame).
I’ve pasted:


at the beginning sidebar1.php

at the beginning sidebar2.php

And created functions.php file:

What am I doing wrong?
Actually you are doing support for others product, I am so sorry for my silly questions.

[Reply]

2008 September 22
Robert

Hmm, php codes do not appear in the comment…

[Reply]

Costa Reply:

Robert,

Did you download the theme recently? The author of the theme sent me an email informing me that there will be a stable version for download. Guess it’s still not up yet. LOL

Anyway, I do not know what your problem is, but from memory, you do not need to paste any codes into the sidebars. All you have to do is to create the functions.php and upload it to your theme. That will widgetized your sidebars. After that you can add in any thing you like by adding widgets.

For your info, when you want to type codes into the comment box of any blog, do not type the opening and closing “div” signs, < and >. Otherwise the codes will no appear.

Last advise, if you just downloaded the theme and it is still problematic, just dump it and use another theme. It’s too much work just to get it working right and it has browser compatibility problems as well.

[Reply]

2008 September 24
Robert

I came back to your blog just to say thank you for your help. After all I got nervous and did as you advised “if you just downloaded the theme and it is still problematic, just dump it and use another theme. “

[Reply]

2008 September 30

I would like to add my logo to the top of this theme and don’t know how…. please help me.

Also, I would like to add mybloglog and other widgets this theme and don’t quite know how to do it.

I noticed also that my ratings widget works but my wp-email and wp-print widgets do not. I’ve already downloaded and activated the widgets in wordpress with no luck. What should I do?

[Reply]

Costa Reply:

CocktailMama,

Same advise Mama, dump the theme! It’s just too buggy and if you do not have some knowledge in codes, it’s going to bring you lot’s of frustration.

If you want a very stable theme that you can tweak without much effort, try using the Visionary Theme or any other theme found there. They are also free, but much better than any Premium Themes out there.

http://themehybrid.com/themes/visionary

[Reply]

2008 October 21

Tips are useful..Will include in my blog

[Reply]

2008 November 12

Hi

I’m using the newsweek theme but my problem is with the image algin in the single post, I indicate a hspace=5 and a vsace=5 but the image still close to the text, do you know how can I fix this?

Thanks in advance

[Reply]

Costa Reply:

Jose,

I don’t remember if this theme is Wordpress 2.6 compatible, because if it is, then there should be a function in the stylesheet that aligns the image perfectly when you insert an image according to your indications when you are writing your post.

Check your stylesheet and refer to this article if the function is not included:

http://blogigs.com/aligning-images-with-your-stylesheet/

[Reply]

Leave A Comment

Note: You can use basic XHTML in your comments. Your email address will never be published.