Apertura pagine presenti in slider home page

Free and Premium WordPress Plugins & Themes Forums WordPress Themes Albatross Apertura pagine presenti in slider home page

  • This topic has 5 replies, 2 voices, and was last updated 1 year ago by J. Davis.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1420575
    Gianluca Londoni
    Participant

    Buonasera,
    avrei cortesemente una domanda relativa allo slider presente nella home page del tema.
    Aprendo il sito scorrono nello slider le pagine di secondo livello della homepage, e questo è molto carino.
    Cliccando sulla slide visualizza però, non si apre la relativa pagina che è raggiungibile solo dal menu.
    Chieso cortesemnte se è possibile fare in modo che cliccando sulla slide si apra la relativa pagina.
    Grazie mille per l’attenzione

    #1420919
    J. Davis
    Keymaster

    Hi Gianluca,

    Thanks for your question. Unfortunately, there is no option to add a link to the slide to redirect the visitor to the page. You may try overriding the function albatross_front_page_header from \albatross\inc\template-functions.php file.

    best regards,
    John Davis

    #1420946
    Gianluca Londoni
    Participant

    Grazie mille Davis
    dove e come potrei inserire il riferimento al permalink delle varie pagine in questa funzione, se possibile avere una indicazione?
    Grazie mille per l’attenzione

    #1422572
    J. Davis
    Keymaster

    Hi Gianluca,

    It requires some knowledge of HTML and PHP to make this customization. Do you wish to link the title of the slide or add a read more button?

    best regards,
    John Davis

    #1422654
    Gianluca Londoni
    Participant

    Accedere al file di configurazione e trovare il tag relativo non è un problema, il problema è collegare la slide al permalink in modo che cliccando sull’immagine si apra la pagina relativa.
    In alternativa va bene anche far apparire un pulsante “Leggi di più” che apra la pagina sottostante.
    Grazie mille per l’attenzione

    #1426325
    J. Davis
    Keymaster

    Hi Gianluca,

    Thanks for your explanation. You may create a custom slider using any third-party plugin and then create a new template part for the front page by duplicating the file \albatross\template-parts\content-page.php. You may name it for example \albatross\template-parts\content-frontpage.php. Then edit this file and replace albatross_page_header(); with shortcode of the slider e.g. echo do_shortcode('[here-goes-shortcode-of-custom-slider]');
    Then go to edit \albatross\template-front-page.php file to change the following line

    get_template_part( 'template-parts/content', 'page' );

    into

    get_template_part( 'template-parts/content', 'frontpage' );

    I hope it will work for you.

    best regards,
    John Davis

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.