Disable Click For Projects

Home Forums Forstron Disable Click For Projects

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #21326

    redheaddigital
    Participant

    Disable Click For Projects

    Resolved

    Hey there! Have you noticed this support service is provided FREE of charge?
    If you like the speed and accuracy of resolutions, please consider supporting me with a small donation. Thank you

    Consider a donation →

    Hi

    1. Is it possible to disable the click on projects?

    I do not want visitors to click and open up individual projects, just to browse and filter them on the main grid.

    2. Is it possible to remove the line under the navigation header edge when overlay layout selected?

    3. Can the menu be vertically centred in the navigation area?

    4. Can the hamburger menu be moved to right align in mobile view? (currently left-aligned)

    Thank you.

    #21327

    Oliver Juhas
    Keymaster

    Hi redheaddigital,

    1. This is possible to achieve by overriding theme template file via a child theme. In your child theme, create a new folder and name it webman-amplifier. In this new folder, create a file called content-shortcode-posts-wm_projects.php and put this content inside the file:
      <article class="<?php echo esc_attr( $helper['item_class'] ); ?>">
      	<?php if ( has_post_thumbnail( $helper['post_id'] ) ) { ?>
      		<div class="wm-posts-element wm-html-element image image-container">
      			<?php
      
      			the_post_thumbnail(
      				$helper['image_size'],
      				array(
      					'title' => esc_attr( get_the_title( get_post_thumbnail_id( $helper['post_id'] ) ) ),
      				)
      			);
      
      			?>
      		</div>
      	<?php } ?>
      	<div class="wm-posts-elements-container">
      		<div class="wm-posts-element wm-html-element title">
      			<<?php echo tag_escape( $helper['atts']['heading_tag'] ); ?>>
      				<?php the_title(); ?>
      			</<?php echo tag_escape( $helper['atts']['heading_tag'] ); ?>>
      		</div>
      		<?php
      			$terms       = get_the_terms( $helper['post_id'], 'project_category' );
      			$terms_array = array();
      			if ( ! is_wp_error( $terms ) && ! empty( $terms ) ) {
      				foreach( $terms as $term ) {
      					$terms_array[] = '<span class="term term-' . sanitize_html_class( $term->slug ) . '">' . esc_html( $term->name ) . '</span>';
      				}
      				echo '<div class="wm-posts-element wm-html-element taxonomy">' . implode( ', ', $terms_array ) . '</div>' ;
      			}
      
      			if ( has_excerpt() ) {
      				echo '<div class="wm-posts-element wm-html-element excerpt">' . wp_kses_post( get_the_excerpt() ) . '</div>';
      			}
      		?>
      	</div>
      </article>
    2. Please use a custom CSS to modify theme styles:
      .site .site-header .inner-wrapper {
      	border-bottom: 0;
      }
    3. If this is still needed after removing header bottom border, you can use custom CSS to tweak the navigation position, such as:
      @media (min-width: 961px) {
      	.main-navigation {
      		margin-top: 17px;
      	}
      }
    4. Please use custom CSS:
      @media (max-width: 960px) {
      	.menu-toggle {
      		left: auto;
      		right: 1rem;
      	}
      
      	.site-header {
      		padding-left: 1rem;
      		padding-right: 5.24rem;
      	}
      }

    As most of these solutions are related to CSS code, please try to use your web browser code inspector to determine the CSS for your theme modifications.

    Best regards,

    Oliver Juhas
    WebMan Design

    #21328

    redheaddigital
    Participant

    Thank you for your thorough reply.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.