WordPress.org

Ready to get started?Download WordPress

Forums

Publish
[resolved] How do I have a page instead of post on home page and can I take date of posts (50 posts)

  1. satinfeather99
    Member
    Posted 1 year ago #

    Hi, I would like to take the date of selected posts and also have a page instead of a post on the home page. Can I do this. I need to get this figured out today!

  2. satinfeather99
    Member
    Posted 1 year ago #

    I am using the Publish Theme

  3. satinfeather99
    Member
    Posted 1 year ago #

    Hi, I also need to know where to change the color of the menu text. It is blue and I need it to be black. I know css somewhat. Still a beginner :) Thank you

  4. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    Posting a link to your site will increase the ability of people to help you with CSS questions.

    http://codex.wordpress.org/Creating_a_Static_Front_Page

  5. satinfeather99
    Member
    Posted 1 year ago #

    Thank you.

    This is my link
    http://www.avisualadvantage.net/argent/

    This is the website I am rebuilding in WordPress with the Publish theme.
    http://www.ardentconsultinginc.com/

    I have to have this complete tomorrow so will be working late.

    Right now I am trying to figure out how to put a background image behind the menu and have to change the menu to black.

    Thanks so much for your help!!!

  6. satinfeather99
    Member
    Posted 1 year ago #

    That is menu text to black....

  7. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    You really need to be using a Child Theme for making any changes to the theme files -- as is, you will lose all the changes when the site is updated.

    http://codex.wordpress.org/Child_Themes

    Once you have that set up, to change the menu text color, try adding this to the new child theme style.css file:

    .main-navigation a {
        color: black;
    }

    So far as the image, it looks like you could possibly put it as a background image in this:

    .site-header {
       background: url('filepath.jpg');

    `
    You'd probably need to fuss around with the positioning using the background attributes:

    http://www.w3schools.com/cssref/css3_pr_background.asp

  8. satinfeather99
    Member
    Posted 1 year ago #

    Thank you I will try that now.

  9. satinfeather99
    Member
    Posted 1 year ago #

    I created a child theme and uploaded it to the Publish Theme folder called publish-child and put the style.css in there.

    I can not seem to activate it. Does anyone know how to activate the Child them in the Publish Theme?

  10. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    Child Themes don't go inside the parent theme folder (I know, seems illogical), they go on the same level as any other theme. Then it should show up like any other theme on your site and you can simply activate it like any other theme.

  11. satinfeather99
    Member
    Posted 1 year ago #

    okay thanks I will try that.

  12. satinfeather99
    Member
    Posted 1 year ago #

    I put the folder called publish-child which has a copy of the style.css on the template level and I am coming up with

    Broken Themes

    The following themes are installed but incomplete. Themes must have a stylesheet and a template.
    Name Description
    Publish Child Template is missing.

    Should this them only have the custom updates to the style.css and nothing else and have all the css in the parent?

  13. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    The stylesheet in the child theme must have the required stuff at the top:

    /*
    Theme Name: Publish Child
    Description: Child theme for publish
    Author: Your name here
    Template: publish
    */
    
    @import url("../publish/style.css");

    is that what you have?

    Yes, you only have your changes in here.

  14. satinfeather99
    Member
    Posted 1 year ago #

    yes pretty much:

    /*
    Theme Name: Publish Child
    Theme URI: http://www.avisualadvantage.net/argent
    Author: Lauren Labas
    Author URI: http://http://www.integrit-network.com/
    Description: This is a child them for Publish Template
    Version: 1.2.3
    License: GNU GPLv3
    License URI: http://www.gnu.org/copyleft/gpl.html
    Tags: light, white, blue, two-columns, left-sidebar, flexible-width, custom-background, custom-colors, custom-menu, editor-style, post-formats, rtl-language-support, sticky-post, threaded-comments, translation-ready

    Based on _s: http://underscores.me

    Resetting and rebuilding styles have been helped along thanks to the fine work of
    Eric Meyer http://meyerweb.com/eric/tools/css/reset/index.html
    along with Nicolas Gallagher and Jonathan Neal http://necolas.github.com/normalize.css/
    and Blueprint http://www.blueprintcss.org/
    */

    @import url("../publish/rtl.css");

  15. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    You're missing the "template" line which is what connects it to the parent theme. That's also what the error says you are missing! Also, why are you using rtl.css in the file path -- that's not the parent stylesheet in your theme, is it? Looks like style.css to me.

  16. satinfeather99
    Member
    Posted 1 year ago #

    Oh just following directions I was reading.

    What should the template line say? so I get if right

  17. Konstantin Kovshenin
    Member
    Theme Author

    Posted 1 year ago #

    For more information on child themes please read through the Codex entry: http://codex.wordpress.org/Child_Themes

  18. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    I posted it above (and that was from the page linked above on how to make a child theme...)

    Put only this in the stylesheet -- remove all the other stuff which is not part of the child theme anyway:

    /*
    Theme Name: Publish Child
    Description: Child theme for publish
    Author: Your name here
    Template: publish
    */
    
    @import url("../publish/style.css");

    Your styles will go below the above.

  19. satinfeather99
    Member
    Posted 1 year ago #

    I will try @import url("../publish/style.css");

    thanks :)

  20. satinfeather99
    Member
    Posted 1 year ago #

    Hi this is my error message. Themes must have a stylesheet and a template.

    Do I need to have a template in the publish-child folder?
    @import url("../publish-child/style.css");
    and
    @import url("../publish/style.css");

  21. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    The only thing in your child theme folder is the style.css file and it has the above at the top -- with only the one @import line.

    There is no line like this anywhere:

    @import url("../publish-child/style.css");

    What is at the top of your child theme style.css file now?

  22. satinfeather99
    Member
    Posted 1 year ago #

    this is my path to my theme /www/argent/wp-content/themes/publish

  23. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    What is in your style.css file?

  24. satinfeather99
    Member
    Posted 1 year ago #

    This is what I have on the top and put the publish-child folder on the theme level

    /*
    Theme Name: Publish Child
    Theme URI: http://www.avisualadvantage.net/argent
    Author: Lauren Labas
    Author URI: http://http://www.integrit-network.com/
    Description: This is a child them for Publish Template
    Version: 1.2.3
    License: GNU GPLv3
    License URI: http://www.gnu.org/copyleft/gpl.html
    Tags: light, white, blue, two-columns, left-sidebar, flexible-width, custom-background, custom-colors, custom-menu, editor-style, post-formats, rtl-language-support, sticky-post, threaded-comments, translation-ready

    Based on _s: http://underscores.me

    Resetting and rebuilding styles have been helped along thanks to the fine work of
    Eric Meyer http://meyerweb.com/eric/tools/css/reset/index.html
    along with Nicolas Gallagher and Jonathan Neal http://necolas.github.com/normalize.css/
    and Blueprint http://www.blueprintcss.org/
    */

    @import url("../publish-child/style.css");

  25. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    I'm really a bit confused -- I've posted twice exactly what you need to put in that file ...

    Again, ERASE everything you have and put this:

    /*
    Theme Name: Publish Child
    Description: Child theme for publish
    Author: Your name here
    Template: publish
    */
    
    @import url("../publish/style.css");
  26. satinfeather99
    Member
    Posted 1 year ago #

    Thank you for your patience. I really appreciate it. I will try that :)

  27. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    No problem... just keep at it and we'll get there :). I know it can be a bit confusing when you have not done it before.

  28. satinfeather99
    Member
    Posted 1 year ago #

    that worked. So I went to themes and activated it and lost a bunch of stuff it seems.

    http://www.avisualadvantage.net/argent/

    Am I missing doing something with the parent theme. I to have everything this same on the parent css as the child css. Just copied and pasted. Should I just have the revisions to the code on the child css and all the other css on the parent?

  29. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    You should only have changes to the CSS code in the new style.css file. It looks like you copied the entire thing? That's really not what you want to do as it make it much harder to keep track of what's what in your CSS code.

  30. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    Oh, and you need to re-do any images because the file path is different now - so that's why your logo is missing.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic