Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1214482
    Doppelpunkt
    Participant

    Hi,

    I have two problems on my page:
    http://www.rohstoffmagazin.at/category/wirtschaft-standort/

    1. I want to add an icon (like the ones in the header: dotted line) to my category post page to the h1 class=”landmark” (Wirtschaft & Standort). Please help me.

    2. If I hover the post image on the category site class=”entry-thumb” I want to change the text from “View Post” to e.g “lesen”.

    Thank you very much,
    Michael

    #1214796
    Christian
    Moderator

    Hey Michael,

    1. Please add the code below in your Appearance > Customize > Custom > Global CSS

    .h-landmark:before {
        font-family: 'Menu Button Icon Set' !important;
        content: "\e922";
    }

    2. Add the code below in your functions.php

    function change_text( $translated_text, $text, $domain ) {
      switch ( $translated_text ) {
        case 'View Post' :
          $translated_text = _e( 'lesen', '__x__' );
          break;
      }
      return $translated_text;
    }
    add_filter( 'gettext', 'change_text', 20, 3 );

    Hope that helps. 🙂

    #1217087
    Doppelpunkt
    Participant

    Works perfectly,
    thank you very much.

    Michael

    #1217125
    Christopher
    Moderator

    You’re welcome.

  • <script> jQuery(function($){ $("#no-reply-1214482 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>