• Resolved moeszyslak

    (@moeszyslak)


    Hi, nach einem Theme Update hab ich den Code wieder in die functions.php eingetragen

    // Passed parameter: an array of social media icons as list items
    function change_speed_contact_bar_icons ( $list_items ) {

    // Add an item as last item in the list, via $array[]
    // The content has to be surrounded by the LI element
    $list_items[] = ‘

    • ‘;

      // Adds an item at any position in the list via array_splice()
      // Way of thinking: the new item should be the x-th element:
      // so is x – 1 the parameter value for the position
      // Example: if 4th element then parameter value is 4 – 1 = 3
      // You can find more tipps for array_splice() at
      // https://php.net/manual/en/function.array-splice.php
      // The content has to be surrounded by the LI element
      // In this example the LI element is extended by an ID attribute
      // to have an exact selector for CSS

      array_splice(
      $list_items, // array to change
      4, // position: array index where to insert the new item
      3, // number of items to replace
      // content of new item:
      );

      array_splice(
      $list_items, // array to change
      0, // position: array index where to insert the new item
      0, // number of items to replace
      // content of new item:
      ‘ <li id=”scb-cellphone”>
      );

      // Returns changed list
      return $list_items;
      }

      // Let the function work
      add_filter( ‘speed_contact_bar_data’, ‘change_speed_contact_bar_icons’ );

      und im custom css ist der code auch noch drinnen
      #scb-cellphone img {
      width: 150px;
      height: auto;
      }

      trotzdem wird das logo links oben in der bar ganz klein angezeigt.

      hab leider keinen fehler gefunden.

      bitte um hilfe. danke

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Martin Stehle

    (@hinjiriyo)

    Ersetze

    #scb-cellphone img {
        width: 150px;
        height: auto;
    }

    durch

    #scb-directs #scb-cellphone img {
        width: 150px;
        height: auto;
    }

    und dann erscheint das Logo in der gewünschten Gr??e.

    Thread Starter moeszyslak

    (@moeszyslak)

    Das wars, dankesch?n wiedermal!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Hinzugefügtes Bild nach Update zu klein’ is closed to new replies.