• 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,

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter shamchak1

    (@shamchak1)

    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?

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    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.

    https://codex.www.ads-software.com/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.

    Thread Starter shamchak1

    (@shamchak1)

    Thanks Jan. the theme is “News” theme from Devpress:

    https://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

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    Justin Tadlock does good work and has been a child theme proponent forever. ??

    https://www.ads-software.com/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.

    https://codex.www.ads-software.com/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.

    Thread Starter shamchak1

    (@shamchak1)

    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.

    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

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘How to modify the News theme’ is closed to new replies.