Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1344301

    Mike, regarding my edited comment here, can you help me to modify the php funciotn in order to display the 3 logos in all pages (not only on the home/front page)?
    thanks

    #1344336

    Hey Nicola,

    Thank you for the inquiry.

    You have to remove this conditional function from the filter to apply the changes on every page.

    if(is_page(home)){
    
    }

    You can the update the filter with the following code.

    -------------------------------
    Additional Logos
    -------------------------------
    function add_logos($logo) {
      $logo .= '<a class="first-logo" href="/"><img src="http://site.local/wp-content/uploads/2022/03/logo-rivista.jpg"/></a>';
      $logo .= '<a class="second-logo" href="https://site.org"><img src="site.local/wp-content/uploads/2022/03/logo-ordine.jpg"/></a>';
      $logo .= '<a class="third-logo" href="https://www.site.it"><img src="http://site.local/wp-content/uploads/2022/03/pacinimedicina.png"/></a>';
      return $logo;
    }
    add_filter('avf_logo_final_output', 'add_logos');
    

    Please make sure to update the href value and the img src in the filter above.

    Best regards,
    Ismael

    #1344361

    thanks Ismael. All worked!

    #1344409

    Hi,

    We are happy that Ismael could help you out! Let us know if you have any other questions and enjoy the rest of your day :)

    Best regards,
    Yigit

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘help with php function’ is closed to new replies.