WordPress.org

Ready to get started?Download WordPress

Forums

How to modify the News theme (8 posts)

  1. shamchak1
    Member
    Posted 2 years ago #

    Hello everybody!

    I am very new to the wordpress community and hope you are all doing well! I am quite overwhelmed with the extensive software and the various jargons used and looking forward for help!

    While I started learing WP with the 2011 theme, I notice that the 'News' theme is very close to what I want. The question is, hwo do I play with it. Here I am stuck from the beginning.

    I was trying to create a child theme and start with a style.css file. But it did not work the same way it worked with 2011 theme.

    The code for style.css I am using is,

  2. shamchak1
    Member
    Posted 2 years ago #

    OK, I could install the basic style.css file in the News child theme and also an @import command and this far it works. One small progress.

    What other files than style.css should I install, for example, functions.php? Are there generic files available for this purpose?

  3. Unless you want to add new functions, you don't need to include a functions.php file in your child theme directory.

    If you want a place holder, these lines work. ;)

    <?php

    Note: Please remember, you never copy the parent theme's functions into the child funtions.php. They both get loaded (child version first) so there is no need.

    http://codex.wordpress.org/Child_Themes

    But it did not work the same way it worked with 2011 theme.

    What's the URL for that theme? If the theme is hosted here then we can take a look.

    Recently I was reminded that some (not many!) parent themes explicitly load their style.css file. When that happens you can still use it as a child theme but need a little more work to get your child theme's style.css to load.

  4. shamchak1
    Member
    Posted 2 years ago #

    Thanks Jan. the theme is "News" theme from Devpress:

    http://devpress.com/demo/news/

    I like its clean solid header. I could ultimately load the basic child theme. So far so good.

    I can off course also use the 2011, as I feel it is structurally the same.

    Now, I want to have different pages each associated with different blogs with static front pages and blogs rolling below them. To start with:

    1. How can I take out the comments underneath a static page?
    2. How can I change the color of the pages (in WP jargon, background means a bit different than that I perceive to be)

    More how to's to come.

    Regards

  5. Justin Tadlock does good work and has been a child theme proponent forever. ;)

    http://wordpress.org/extend/themes/news

    1. How can I take out the comments underneath a static page?
    2. How can I change the color of the pages (in WP jargon, background means a bit different than that I perceive to be)

    Item #1 is easy. You can either disable comments on those static pages or create a page template and in that template leave out the comment section.

    http://codex.wordpress.org/Pages#Creating_Your_Own_Page_Templates

    For #2, install Firebug and identify the CSS that needs to be changed. Put those changes into your news-child/style.css file and that will override the parent theme's settings.

  6. shamchak1
    Member
    Posted 2 years ago #

    Thanks. News is a great theme- I love its simplicity and attractiveness. Justin has done a great job!

    I will have a look at your suggestion and I could install firebug also. But how do I understand which part of the code should I change in changing the color of the page/posts?

    thanks in advance for your kind help.

  7. saundhaus
    Member
    Posted 2 years ago #

    I'd like to know how to make it so there's a comment link on the posting from the home page without having to click on the headline to take you to a static page.

    Eric

  8. Bijouxpress
    Member
    Posted 1 year ago #

    Hi,
    How do I remove the lightning bold next to the title. Ant help would be appreciated.
    Thanks B

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags