WordPress.org

Forums

How to Remove category pages titles that appear before posts? (32 posts)

  1. machine sound
    Member
    Posted 4 years ago #

    our custom menu displays pages and some category pages, and when these category pages are displayed, it shows the category title at the begining, before any posts.
    Don't want to see this title..But I have deleted and replaced so many pieces of code in different php files without success.
    Anyone who knows how to remove category pages titles that appear before the posts?

  2. João Sardinha
    Member
    Posted 4 years ago #

    does your theme contains a category.php file? open it and look for something in the code that may refer to the category name

  3. machine sound
    Member
    Posted 4 years ago #

    in wp_includes/category.php

    Probably this part:

    [Code moderated as per the Forum Rules. Please use the pastebin]

  4. João Sardinha
    Member
    Posted 4 years ago #

    try commenting this line like this //return $category->name;

  5. João Sardinha
    Member
    Posted 4 years ago #

    WAITTT, dont change wordpress core code, go to wp-content > themes >your-theme and look there for category.php

  6. machine sound
    Member
    Posted 4 years ago #

    There isn't any category.php file in wp-content > themes >my-theme
    Files in wp-content..are like: content-page, content-gallery, content-single, functions, index, archive, etc..

    [No bumping, please.]

  7. João Sardinha
    Member
    Posted 4 years ago #

    What theme are you using?

  8. machine sound
    Member
    Posted 4 years ago #

    I created with artisteer

  9. João Sardinha
    Member
    Posted 4 years ago #

    Go here
    http://your-website.com/wp-admin/theme-editor.php

    and on the right side look for the default category template, then copy and paste the code here http://pastebin.com/ and place a link in this thread please

  10. machine sound
    Member
    Posted 4 years ago #

    These are All files on the right side, nothing relating directly to "categories"...

    (archive.php)
    (header.php)
    (comments.php)
    (single.php)
    (404.php)
    (searchform.php)
    (functions.php)
    (onecolumn-page.php)
    (footer.php)
    (attachment.php)
    (index.php)
    (page.php)
    (search.php)
    (admins.php)
    (content-aside.php)
    (content-attachment.php)
    (content-gallery.php)
    (content-page.php)
    (content-single.php)
    (content.php)
    (defaults.php)
    (legacy-comments.php)
    (legacy.php)
    (misc.php)
    (navigation.php)
    (options.php)
    (shortcodes.php)
    (sidebar-bottom.php)
    (sidebar-default.php)
    (sidebar-footer.php)
    (sidebar-secondary.php)
    (sidebar-top.php)
    (sidebars.php)
    (smiley.php)
    (widgets.php)
    (wrappers.php)

    (style.css)
    style.ie6.css
    (style.ie6.css)
    style.ie7.css
    (style.ie7.css)

  11. João Sardinha
    Member
    Posted 4 years ago #

    copy the contents of index.php into pastebin please

  12. machine sound
    Member
    Posted 4 years ago #

    "http://pastebin.com/embed_js.php?i=Q5cwetxD"

  13. João Sardinha
    Member
    Posted 4 years ago #

    now sidebar-top and content.php please, that theme is quite confusing
    Also please provide a link to the page where the situation happens, if possible.

  14. machine sound
    Member
    Posted 4 years ago #

    "http://pastebin.com/embed_js.php?i=cTQwrQ7R" sidebar top
    "http://pastebin.com/embed_js.php?i=vk8q9Y61" content

  15. machine sound
    Member
    Posted 4 years ago #

    am doing this using a localhost cause the site hasn't been launched

  16. João Sardinha
    Member
    Posted 4 years ago #

    OMG, that theme looks like inception, lets try something easier, i will need the source code, in html, of the page, right click on the page, view source code, copy and paste into pastebin please

  17. machine sound
    Member
    Posted 4 years ago #

    "http://pastebin.com/embed_js.php?i=9tAHeawg"
    I think this is the problematic part: <h4>Cuerpo</h4>

  18. João Sardinha
    Member
    Posted 4 years ago #

    try adding
    .art-postcontent h4 { display: none; }
    to your css files, after that, check different pages to see if something is missing, because that code may affect other pages in ways that you do not want

  19. machine sound
    Member
    Posted 4 years ago #

    where exactly do i have to add it? which file and place into the code?

  20. João Sardinha
    Member
    Posted 4 years ago #

    open style.css in the editor you used before, its in the end of the file list (style.css)

  21. machine sound
    Member
    Posted 4 years ago #

    and paste that anywhere into that file? or any specific line?

  22. João Sardinha
    Member
    Posted 4 years ago #

    Paste at the end of the file

  23. machine sound
    Member
    Posted 4 years ago #

    title is still there

  24. João Sardinha
    Member
    Posted 4 years ago #

    try
    .art-postcontent { display: none; }

  25. machine sound
    Member
    Posted 4 years ago #

    no change

  26. João Sardinha
    Member
    Posted 4 years ago #

    if this doesn't work i dont know what to do, wait until you put it online and then ask here again

    .breadcrumbs {
    	display: none !important;
    }
  27. machine sound
    Member
    Posted 4 years ago #

    didn't work.. is it not the same using a localhost?
    and thank you

  28. João Sardinha
    Member
    Posted 4 years ago #

    Yes it is, but on a live site i can use firebug (an awesome plugin for firefox) and test the code.

    No problem

  29. machine sound
    Member
    Posted 4 years ago #

    email? to try with that plugin online

  30. João Sardinha
    Member
    Posted 4 years ago #

    you need to place the website online, after that, drop the link here, you can email me: mail at johnsardine dot com

Topic Closed

This topic has been closed to new replies.

About this Topic