- This topic has 10 replies, 2 voices, and was last updated 6 years ago by sapana.
-
AuthorPosts
-
October 31, 2018 at 12:58 pm #158180Glen PavelichParticipant
When scrolling over images on the feature content it reads “permalink to”.
Is there a way this can be changed to “Go To”, or deleted altogether.
And can the font size and color be changed?The site is tangledgarden.ca
The feature content is directly below the nav bar.November 1, 2018 at 2:41 am #158216sapanaParticipant@fireflywebs: To change the “permalink to:” = ” Go to” you need to create the child theme and do a little bit of customization let me know if you are familiar with the child theme. I will provide you the necessary code for that otherwise I suggest you to hire a customizer to get it done.Can you Please clarify me In which section you want to change the font size and color.
Kind Regards,
SapanaNovember 1, 2018 at 12:49 pm #158281Glen PavelichParticipantYes I have a child theme and am familiar with CSS and edits. Thanks
Will gratefully accept the code.Notices from this forum are not coming to my email. Is there some reason that might be happening?
November 2, 2018 at 3:41 am #158322sapanaParticipant@fireflywebs: Go to => Lucida-pro-child => funtions.php and add the following Code.
function lucida_page_post_category_content( $options ) { global $post; $no_of_post = 0; // for number of posts $post_list = array();// list of valid post/page ids $layouts = 3; $quantity = $options['featured_content_number']; $type = $options['featured_content_type']; $show_content = $options['featured_content_show']; $output = '<div class="featured_content_slider_wrap">'; if( 'layout-four' == $options['featured_content_layout'] ) { $layouts = 4; } elseif ( 'layout-two' == $options['featured_content_layout'] ) { $layouts = 2; } $args = array( 'post_type' => 'any', 'orderby' => 'post__in', 'ignore_sticky_posts' => 1 // ignore sticky posts ); //Get valid number of posts if( 'post' == $type || 'page' == $type ) { for( $i = 1; $i <= $quantity; $i++ ){ $post_id = ''; if( 'post' == $type ) { $post_id = isset( $options['featured_content_post_' . $i] ) ? $options['featured_content_post_' . $i] : false; } elseif( 'page' == $type ) { $post_id = isset( $options['featured_content_page_' . $i] ) ? $options['featured_content_page_' . $i] : false; } if ( $post_id && '' != $post_id ) { $post_list = array_merge( $post_list, array( $post_id ) ); $no_of_post++; } } $args['post__in'] = $post_list; } elseif( 'category' == $type ) { $no_of_post = $quantity; $args['category__in'] = $options['featured_content_select_category']; } if ( 0 == $no_of_post ) { return; } $args['posts_per_page'] = $no_of_post; $loop = new WP_Query( $args ); $i=0; while ( $loop->have_posts()) : $loop->the_post(); $i++; $title_attribute = the_title_attribute( array( 'before' => esc_html__( 'Go to: ', 'lucida-pro' ), 'echo' => false ) ); $excerpt = get_the_excerpt(); $output .= ' <article id="featured-post-' . $i . '" class="post hentry post">'; //Default value if there is no first image $image = '<img class="wp-post-image" src="'.esc_url( get_template_directory_uri() ).'/images/gallery/no-featured-image-1920x800.jpg" >'; if ( has_post_thumbnail() ) { $image = get_the_post_thumbnail( $post->ID, 'lucida-landscape', array( 'title' => $title_attribute, 'alt' => $title_attribute ) ); } else { //Get the first image in page, returns false if there is no image $first_image = lucida_get_first_image( $post->ID, 'lucida-landscape', array( 'title' => $title_attribute, 'alt' => $title_attribute ) ); //Set value of image as first image if there is an image present in the page if ( '' != $first_image ) { $image = $first_image; } } $output .= ' <figure class="featured-homepage-image"> <a href="' . esc_url( get_permalink() ) . '" title="' . $title_attribute . '"> '. $image .' </a> </figure>'; $output .= ' <div class="entry-container"> <header class="entry-header"> <h2 class="entry-title"> <a href="' . esc_url( get_permalink() ) . '" rel="bookmark">' . the_title( '','', false ) . '</a> </h2> </header>'; if ( 'excerpt' == $show_content ) { $output .= '<div class="entry-summary"><p>' . $excerpt . '</p></div><!-- .entry-summary -->'; } elseif ( 'full-content' == $show_content ) { $content = apply_filters( 'the_content', get_the_content() ); $content = str_replace( ']]>', ']]>', $content ); $output .= '<div class="entry-content">' . wp_kses_post( $content ) . '</div><!-- .entry-content -->'; } $output .= ' </div><!-- .entry-container --> </article><!-- .featured-post-'. $i .' -->'; endwhile; wp_reset_postdata(); return $output; }
This should change your Permalink to:=> Go to. Let me know if this works out!
Kind Regards,
SapanaNovember 5, 2018 at 8:34 am #158582Glen PavelichParticipantThank you.
Is the id this
#featured-post-
with the dash at the end?
So I can change the font style as well.Regards.
November 5, 2018 at 8:42 am #158583Glen PavelichParticipantTried the #featured-post- to change the font styling and also #featured-post
but neither works. So can you give me that too. Thanks.G
November 5, 2018 at 9:24 am #158584Glen PavelichParticipantHmmmm. Added the code in the functions file at the end…. before the final ?>
but it’s not changing the roll over. It still says ‘permalink to. I have copied and pasted directly from your code above including the closing tag.I have no other code in the functions file except for what is required for the standard child theme.
The site is https://tangledgarden.ca
The feature content is just below the main nav.Thanks
November 5, 2018 at 12:46 pm #158590Glen PavelichParticipantIt did work actually….there was just a time delay. So all I need now is the CSS id or class for that same feature so I can change the font size, and perhaps color.
November 6, 2018 at 2:58 am #158656sapanaParticipant@fireflywebs: Font Size and Color of the ” Go to” cannot be controlled, It differs from browser and it is control by browser.
Kind Regards,
SapanaNovember 8, 2018 at 11:35 am #158847Glen PavelichParticipantOK – Thanks
November 11, 2018 at 11:32 pm #159031sapanaParticipant@fireflywebs:Hello, there,I hope I was able to resolve your issue. If it’s not too much trouble,
I have a quick request: could you please leave an honest review?https://wordpress.org/support/theme/lucida/reviews/#new-post.Your review will help others know what to expect when they’re looking
for the support I offer. Even a sentence or two would be hugely appreciated.
Thanks, and if there’s anything else at all that I can do to help, don’t hesitate to let me know.Kind Regards,
Sapana -
AuthorPosts
- The topic ‘Scroll over text on Feature Content’ is closed to new replies.