Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @fairsicherungsordner!

    There isn’t a built-in way to link to pages, not posts, in Dyad’s grid. You could achieve what you’re after if you’re fairly comfortable diving into the theme’s code, however.

    The first step would be for you to set up a child theme.

    In case you’re unsure, the following guides provide a good introduction to child themes, including steps to set one up:

    After you have completed that step, copy the parent’s index.php file to your child theme’s directory and then open it in your favourite text/code editor.

    You’ll find the code that “tells” the theme to loop through and display your site’s post here:

    		<?php if ( have_posts() ) : ?>
    
    			<div id="posts" class="posts">
    
    				<?php /* Start the Loop */ ?>
    				<?php while ( have_posts() ) : the_post(); ?>
    
    					<?php
    
    						/*
    						 * Include the Post-Format-specific template for the content.
    						 * If you want to override this in a child theme, then include a file
    						 * called content-___.php (where ___ is the Post Format name) and that will be used instead.
    						 */
    						get_template_part( 'template-parts/content', 'blocks' );
    					?>
    
    				<?php endwhile; ?>
    
    			</div><!-- .posts -->

    You’ll need to edit this code to pull in pages instead of posts.

    I found some related forum posts that may help you use WordPress’ WP_Query class to do that here:

    If you’re not comfortable diving into the code above then you could consider sticking with posts. You can navigate to Settings > Permalinks in your site’s /wp-admin area to remove the dates from the posts’ URLs so that they appear more “page-like” to visitors.

    Hope the above information helps to guide you in the right direction!

    Thread Starter fairsicherungsordner

    (@fairsicherungsordner)

    Hi @siobhyb,

    thanks for your detailed mesage.
    i already solfed it in another way.
    in the pagesettings i just changed the form from common to galerie so now i can place everything inside the page without relink to another page.

    Okay! ?? Let us know if any extra questions come up.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Change Link from Blog grid’ is closed to new replies.