Tagged: ,

Viewing 18 posts - 1 through 18 (of 18 total)
  • Author
    Posts
  • #441493

    Hello Enfold,
    I while back I removed all the archive titles of my blog. And now I would like them back, kinda. I would like to have the back without the “archive for”.

    I looked at the forum and everbody suggests editing wp-content\themes\enfold\framework\php. But When I look at the date stamp I have never editted this before.

    So my question would be where do I remove and get back the full titles of the archive, so I can edit them later.

    cheers

    • This topic was modified 9 years, 6 months ago by Wolf. Reason: add functions.php, maybe its _add filter related
    #441878

    Hi WolfvanHaeren!

    Could you provide us with a link to the site in question so that we can take a closer look please?

    Regards,
    Rikard

    #442258
    This reply has been marked as private.
    #443568

    Hey!

    Have you tried restoring archive.php from a fresh copy of Enfold?

    Best regards,
    Josue

    #443598

    yes I did,
    Archive.php was not changed in anyway

    #443612
    This reply has been marked as private.
    #443622

    Hi,

    Can you please create us a WordPress administrator account? post it here as a private reply.

    Regards,
    Josue

    #443667
    This reply has been marked as private.
    #444237

    Hey!

    The archive title is located inside the breadcrumb or title container. On your previous thread, you asked for a way to disable the breadcrumbs: https://kriesi.at/support/topic/breadcrumbs-on-one-part-of-site/

    Best regards,
    Ismael

    #444820

    I see! That makes sense I forgot that It was in the breadcrumb.

    So now I have a bit of a problem.

    My general site setting for breadcrumbs is none.
    I use the option in the pages to turn them on when I need them.
    And I use quick css to hide the titel. So I just have the breadcrumbs.

    But now in the archive page I need the titel and not the breadcrumbs.

    My guess would be turning the title and breadcrumbs back on for the site. Hiding the titles for the pages I need the breadcrumbs. And hiding the Breadcrumbs for when I need the titles. And hiding everything for the rest of the site. But this doesn’t seem the easiest way.

    I would like to hear if you have an Idea?

    cheers

    #445493

    Hey!

    I tried logging with the user provided here but the login page keeps refreshing.

    Regards,
    Josue

    #445518
    This reply has been marked as private.
    #446170

    Hey!

    Add this in the functions.php file:

    add_action( 'ava_after_main_title', 'ava_archive_title_mod');
    
    function ava_archive_title_mod() {
    	if(is_category()) {
              echo avia_title(array('title' => avia_which_archive(), 'breadcrumb' => false));
    	}
    }

    Remove browser cache then reload the page.

    Regards,
    Ismael

    #446304

    Hello Ismael,

    The code doesn’t seem to do anything.
    Maybe because of .title_container .main-title { display: none; } in the css.

    cheers

    #446926

    Hey!

    Please remove that css.

    Regards,
    Ismael

    #447012

    That I understand, but it will return everywhere. We need the title only on post archive pages. We have given up so you can close this. Maybe we will revisit later.

    #448266

    Hi!

    Don’t remove the code but add this below:

    .archive .title_container .main-title { display: block !important; }
    

    Regards,
    Ismael

    #450605

    it worked! thanks a lot!!

Viewing 18 posts - 1 through 18 (of 18 total)
  • The topic ‘archive titles’ is closed to new replies.