Digital experiences for all disciplines
New Landing › How can we help? › Cardinal › Various tweaks!
New Landing › How can we help? › Cardinal › Various tweaks!
- This topic has 10 replies, 3 voices, and was last updated 9 years by Rui Guerreiro – SUPPORT.
-
Posted in: Cardinal
-
May 16, 2015 at 7:13 pm #175571
Hi,
Could you please help me adjust a few things…
1) Is it possible to style the carousel left / right arrows from the top and move them to the left and right hand side in line with the icons and larger?
(to view please scroll down to who are you section on the home page).2) If you scroll down to the footer, on the left are a row of social Icons – Can you remove the extra box to the left in the social media icon in the footer, where no icon is displayed?
3) Is there any way to change the 404 header page title?
4) Is there a way to change the directory search box ‘placeholder’ text to Keywords? Plus is there a way to style the search button?
see – http://cardinal.iehf.org/directory/5) For the directory listing search results – is there a way to move the ‘read more’ text in line with the text above?
see – http://cardinal.iehf.org/directory/Thanks in advance.
Roland
May 18, 2015 at 6:46 pm #176147Hi,
1) Something like this?
https://www.dropbox.com/s/1tkdtggjck7pr57/mockup_slider.png?dl=02)Can you provide admin access to check the reason for this?
3) Yes, using Yoast WordPress SEO plugin
4)You can achieve it using the translation
5)Only customizing the Directory code.
Copy this function to the child theme functions.php
/* DIRECTORY ITEMS ================================================== */ if ( ! function_exists( 'sf_directory_items' ) ) { function sf_directory_items($excerpt_length, $pagination, $item_count, $directory_cat){ /* OUTPUT VARIABLE ================================================== */ $directory_items_output = $grid_size = ""; $count = 0; $order = "standard"; /* DIRECTORY QUERY SETUP ================================================== */ global $post, $wp_query; if ( get_query_var( 'paged' ) ) { $paged = get_query_var( 'paged' ); } elseif ( get_query_var( 'page' ) ) { $paged = get_query_var( 'page' ); } else { $paged = 1; } $order_mode = $order_by = ""; if ( $order == "standard" ) { $order_mode = "DESC"; $order_by = "date"; } else if ( $order == "date-asc" ) { $order_mode = "ASC"; $order_by = "date"; } else if ( $order == "title-desc" ) { $order_mode = "DESC"; $order_by = "title"; } else if ( $order == "title-asc" ) { $order_mode = "ASC"; $order_by = "title"; } $tax_query = array(); $tax_query_category = array(); $tax_query_location = array(); if ( isset( $directory_cat) && $directory_cat != '' && $directory_cat != 'All' ) { $directory_cat_array = array(); $directory_cat_array = explode(",", $directory_cat); $tax_query_category = array( 'taxonomy' => 'directory-category', 'field' => 'slug', 'terms' => $directory_cat_array ); array_push( $tax_query, $tax_query_category ); } if ( isset( $_POST['dir-category-id'] ) && $_POST['dir-category-id'] != '' && $_POST['dir-category-id'] != 'All' ) { $category_term = $_POST['dir-category-id']; $tax_query_category = array( 'taxonomy' => 'directory-category', 'field' => 'slug', 'terms' => array( $category_term ) ); array_push( $tax_query, $tax_query_category ); } if ( isset( $_POST['dir-location-id'] ) && $_POST['dir-location-id'] != '' && $_POST['dir-location-id'] != 'All' ) { $location_term = $_POST['dir-location-id']; $tax_query_location = array( 'taxonomy' => 'directory-location', 'field' => 'slug', 'terms' => array( $location_term ) ); array_push( $tax_query, $tax_query_location ); } $search_term = ""; if( isset($_POST['dir-search-value']) ){ $search_term = $_POST['dir-search-value']; } //Get all itens when there is no pagination if( $pagination != 'yes' ){ $item_count = -1; } $directory_args = array( 's' => $search_term, 'post_type' => 'directory', 'post_status' => 'publish', 'paged' => $paged, 'posts_per_page' => $item_count, 'order' => $order_mode, 'orderby' => $order_by, 'tax_query' => $tax_query, 'meta_query' => array( 'relation' => 'AND', array( 'key' => 'sf_directory_address', 'value' => '', 'compare' => '!=', ) ) ); $directory_items = new WP_Query( $directory_args ); /* ITEMS OUTPUT ================================================== */ global $sf_options; $directory_items_output .= '<div class="directory-list-results">'; while ( $directory_items->have_posts() ) : $directory_items->the_post(); $directory_items_output .= '<div class="directory-item clearfix">'; /* META VARIABLES ================================================== */ $item_title = get_the_title(); $img_src = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'thumb-image' ); $pin_link = esc_url( sf_get_post_meta( $post->ID, 'sf_directory_pin_link', true ) ); $pin_button_text = sf_get_post_meta( $post->ID, 'sf_directory_pin_button_text', true ); $custom_excerpt = sf_get_post_meta( $post->ID, 'sf_custom_excerpt', true ); $post_excerpt = ''; if ( $excerpt_length != '') { if ( $custom_excerpt != '' ) { $post_excerpt = sf_custom_excerpt( $custom_excerpt, $excerpt_length ); } else { $post_excerpt = sf_excerpt( $excerpt_length ); } }else{ $post_excerpt = sf_excerpt( 200 ); } $post_excerpt .= ' <a class="read-more-directory" href="'. get_permalink( $post->ID ) . '"> ' . __('Read More', 'swiftframework') . '</a>'; $post_terms = get_the_terms( $post->ID, 'directory-category' ); $term_slug = " "; $category_list_text = ""; if ( ! empty( $post_terms ) ) { foreach ( $post_terms as $post_term ) { $term_slug = $term_slug . $post_term->slug . ' '; $category_list_text .= $post_term->name. ' | '; } } $category_list_text = rtrim($category_list_text, "| "); $location_terms = get_the_terms( $post->ID, 'directory-location' ); $location_text = ""; if ( ! empty( $location_terms ) ) { foreach ( $location_terms as $location_term ) { $location_text .= $location_term->name. ' | '; } $location_text = rtrim($location_text, "| "); if ( $category_list_text != ''){ $location_text = '| ' . $location_text; } } /* ITEM OUTPUT ================================================== */ if ( isset($img_src[0]) ) { $directory_items_output .= '<figure class="animated-overlay overlay-alt">'; $directory_items_output .= '<img itemprop="image" src="' .$img_src[0].'" alt="' . $item_title .'">'; $directory_items_output .= '<a href="' . get_permalink($post->ID) . '" class="link-to-post"></a><div class="figcaption-wrap"></div>'; $directory_items_output .= '<figcaption><div class="thumb-info"><h4>' .$item_title. '</h4></div></figcaption></figure>'; $item_left_margin = ""; } else { $item_left_margin = "dir-item-no-margin"; } $directory_items_output .= '<div class="directory-item-details ' . $item_left_margin . '"><h3>' . $item_title . '</h3>'; $directory_items_output .= '<div class="item-meta">' . $category_list_text . ' ' . $location_text . '</div><div class="excerpt" itemprop="description">' . $post_excerpt . '</div>'; if( $pin_button_text != '' && $pin_link != ''){ $directory_items_output .= '<a class="read-more-button" href="' . $pin_link . '" target="_blank">' . $pin_button_text . '</a>'; } $directory_items_output .= '</div></div>'; $count ++; endwhile; wp_reset_query(); wp_reset_postdata(); /* PAGINATION OUTPUT ================================================== */ if ( $pagination == "yes" ) { $directory_items_output .= pagenavi( $directory_items, '<div class="pagination-wrap">', '</div>'); } $directory_items_output .= '</div>'; /* FUNCTION OUTPUT ================================================== */ return $directory_items_output; } }
And adjust the this line
$directory_items_output .= '<div class="item-meta">' . $category_list_text . ' ' . $location_text . '</div><div class="excerpt" itemprop="description">' . $post_excerpt . '</div>';
-Rui
May 18, 2015 at 9:19 pm #176176This reply has been marked as private.May 19, 2015 at 11:21 am #176415Hi
1) Unfortunately not, Rui’s mockup is doable with some CSS tweaks
2) Add this to your custom css:
.social-icons .twitter >a:first-child { display: none; }
– Kyle
May 22, 2015 at 5:54 am #177528This reply has been marked as private.May 22, 2015 at 10:39 am #1776641) Well no, because there would be no way to get the icons to act as navigation for the carousel
3) Go to the SEO settings > Titles & Meta > Archive: http://d.pr/i/1feqy/54DYJaRS
4) If you install codestyle localisation and search for the string, you can replace the words
5) Did you add to child theme functions.php file and not the parent theme?
– Kyle
May 26, 2015 at 9:19 am #178370This reply has been marked as private.May 26, 2015 at 9:37 am #178380This reply has been marked as private.May 28, 2015 at 2:59 pm #179223These are all new issues yes? Please open a new topic when you have new issues, you can’t just keep asking a bunch of questions in one topic, it makes it difficult for us to keep track
– Kyle
June 2, 2015 at 10:20 pm #180920This reply has been marked as private.June 4, 2015 at 10:55 pm #181644We will check your other posts.
-Rui -
Posted in: Cardinal
You must be logged in and have valid license to reply to this topic.