awesomeblogger
Forum Replies Created
-
I see. Well, I mean is there another way I can do this? Is it possible to make the search form width the same size as the navigation menu, even as it changes?
The part that seems challenging is if I add a custom width, and then if I add more menu items in the future, then they would be visible and that would be a problem.
But I think the solution could be if the search bar form mirrors the width of the navigation menu. How can I do this?
Thank you!
Awesome! Thank you!
Thanks, solved!! ??
Forum: Themes and Templates
In reply to: [GeneratePress] How to make excerpt text clickable?Hey @edge22,
here’s the full code:<script>
jQuery( document ).ready( function($) {
var body = $( ‘body’ );
if ( body.hasClass( ‘blog’ ) || body.hasClass( ‘archive’ ) ) {
$( ‘.type-post .entry-summary’ ).on( ‘click’, function() {
var link = $( this ).find( ‘.entry-title a’ ).attr( ‘href’ );
if ( link ) {
window.location = link;
}
} );
}
} );
</script>I know that this code targets the whole div container. That makes the blank space with no text clickable. I do not want that, but only the text clickable.
Please read my message above in full.Forum: Themes and Templates
In reply to: [GeneratePress] Cannot decrease line height in CSSHow can I decrease the line-height for my bullet list?
I need it to be lower than the rest of my text.
Is there a way to do this with Hooks if it’s not possible to do it through CSS?
Thanks Leo! I’ve used this one:
.comments-title, .comment-reply-title {
font-size: 30px;and it worked!
Solved.
Forum: Themes and Templates
In reply to: [GeneratePress] How to make search page results be a posts grid?@hunttyboxer , send me a message on Reddit: https://www.reddit.com/user/Whatthe7593
I will leave this message for the next 1 hour.
- This reply was modified 4 years, 3 months ago by awesomeblogger.
Forum: Themes and Templates
In reply to: [GeneratePress] How to make search page results be a posts grid?@hunttyboxer, why?
Forum: Themes and Templates
In reply to: [GeneratePress] How to make excerpt text clickable?I do not have any other solution. I wasn’t able to figure it out. That’s why I am asking for help.
Forum: Themes and Templates
In reply to: [GeneratePress] How to make excerpt text clickable?Hey @edge22, thanks for your message, I do have an example.
Link: https://greatist.com
So as you can see if you scroll down on this site, the excerpt text, the short summary of the blog posts in the archive are both clickable and they lead to the post itself when the user clicks on them, just like the read more button.
The problem with this code above I’ve encountered is, although it does make the excerpt clickable, it marks it and also the read more button as a link, changing its style (font and color, depending on the way they’re set up in the customizer).
And the second problem is the code above marks the whole excerpt container, within which is the text, rather than just the text/summary itself.
Does that make sense?
Thank you.
- This reply was modified 4 years, 3 months ago by awesomeblogger.
Hey David,
I am unable to unfortunately! But I don’t have any custom code that is making things italic. I don’t know.
Can you check whether or not the same function is italic in your Hooks?- This reply was modified 4 years, 3 months ago by awesomeblogger.
Thanks!
Thank you @askel45, that helps greatly!!!
Forum: Themes and Templates
In reply to: [GeneratePress] How to make excerpt text clickable?Hey @edge22,
I also have this code, but the problem is it removes the read more button, the way its stylelized, and also the text itself including the read more button appear as a link.
Here’s the code:
function clickable_excerpt( $excerpt ) {
return ‘‘. preg_replace( ‘|</?a.*?>|i’, ”, $excerpt ) .’‘;
}
add_filter( ‘get_the_excerpt’, ‘clickable_excerpt’ );- This reply was modified 4 years, 3 months ago by awesomeblogger.
Forum: Themes and Templates
In reply to: [GeneratePress] How to make excerpt text clickable?Hey @edge22,
Okay I was able to solve that by adding script at the beginning and end.
$( ‘.type-post .entry-summary’ ) marks the whole container and not the text itself. That makes the blank space after the text clickable as well.
Is there a way to mark only the text?