Add Link To Archives Photos and Add (More… ) Link to the […]
-
I would like to add a “rollover” link to the “Archive Photo and add “read more..” link where the […] is.
https://bonitabicycles.com/category/bikes/Thank you in advance,
Deird
-
Sorry don’t get the “Archive Photo” part.
About the read more, you can add this to your functions.php:// Replaces the excerpt "more" text by a link function new_excerpt_more($more) { global $post; return '<a class="moretag" href="'. get_permalink($post->ID) . '"> read more...</a>'; } add_filter('excerpt_more', 'new_excerpt_more');
@d4z_c0nf
As usual, you always come through. Thank you so much. Sorry for the delay in getting back with you.
The[read more]…did the trick.
The photo thingy is the photos that relate to the post.
I would like to set the same link form the [read more] link to the photo.
https://bonitabicycles.com/category/bikes/Thanks again for your kindness,
DeirdAh, about that..
There’s something wrong in your post_list.. Why in the thumb-wrapper the<a>
is before the<div class="round-div></div>
?
Once you fixed this, you can obatain someting the “Read more” (like a tooltip, just text) on hover doing something like this:article a.round-div:hover:after{ content='Read More'; }
[Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]
So did you change something related to post_list code?
It’s weird.
Anyway, if you don’t know what’s the problem, to proper have the thumbnail as a link add this to your cssarticle a.round-div { z-index: 100; }
@d4z_c0nf,
Good morning my friend,I am still stuck on this item regarding the
“There’s something wrong in your post_list.. Why in the thumb-wrapper the is before the <div class=”round-div></div>?”
and
“So did you change something related to post_list code?”
https://bonitabicycles.com/category/bikes/
I created another category page “brand” to see if somehow the bikes category was messed up, but the brand page still has no picture link.
https://bonitabicycles.com/category/brand/
Walk-Through perhaps, please.
Deird??
Well no still the same problem, don’t know why it’s so for you.
If you go incustomizr/parts/class-content-post_list.php
line 248, I have:$thumb_wrapper = sprintf('<div class="thumb-wrapper %1$s"><div class="round-div"></div><a class="round-div %1$s" href="%2$s" title="%3$s"></a>%4$s</div>',
In your case the order of
<div class="round-div"></div>
and<a class="round-div" ..
is swapped. Sure you have not changed anything?
Maybe you used an hook for this filter?$thumb_wrapper = apply_filters( 'tc_post_thumb_wrapper', $thumb_wrapper, $thumb_img );
Anyway, as I told you yesterday, if you don’t know what happened, and you cannot change that then use that simple css above. That will “raise” the
<a href>
above the<div class="round-div"
.Hope this helps..
What do you mean where you said “I have”. Does that mean that you see that in my site or that is what is in your “class-content-post_list.php” ?
Because I copied:
$thumb_wrapper = sprintf(‘<div class=”thumb-wrapper %1$s”><div class=”round-div”></div>%4$s</div>’,and compared it to mine it was exactly the same.
So you want me to do it like this?
$thumb_wrapper = sprintf(‘<div class=”thumb-wrapper %1$s”> %4$s</div><div class=”round-div”></div>’,
Sorry for the delay,
DeirdOkay i just swapped those out, and now you would like for me to place:
<div class=”round-div”
In the Custom CSS?
Styles Page?
Function.phpThank you,
DeirdNo no I don’t want you do that, what I wanted to say is that i have this:
$thumb_wrapper = sprintf('<div class="thumb-wrapper %1$s"><div class="round-div"></div><a class="round-div %1$s" href="%2$s" title="%3$s"></a>%4$s</div>',
at that line (in my class-content-post_list.php).
So<div class="round-div"></div>
precedes<a class="round-div" ..>...</a>
But I see something like this in your category page:<div class="thumb-wrapper no-effect"><a class="round-div no-effect" href="https://bonitabicycles.com/biria/" title="BIRIA"></a><div class="round-div"></div><img width="240" height="163" src="https://bonitabicycles.com/wp-content/uploads/2014/03/240biria1.png" class="attachment-medium wp-post-image" alt="240biria"></div>
As you can see,
<a class="round-div" ..
and<div class="round-div">
are swapped.p.s.
I don’t know where you took this line you pasted ?? :$thumb_wrapper = sprintf('<div class="thumb-wrapper %1$s"><div class="round-div"></div>%4$s</div>',
@d4z_c0nf
Roger That to Ground Control.
Overwhat?
Okay,
Please one more i have been struggling with this for a few hours now.
Please see attached document.
Deirdrecan u rewrite that page and I copy, paste and upload it?
Deird@immelting, I didn’t say to change that file, I was just asking if you changed something ’cause there was that swap when I looked into your source page.
I cannot modify your file because your file has this type of end of line “^M”, and will be a mess.
So I’ll write here what you have to modify in that file you gave me (basically you have to revert it to the original one, don’t know why you modified it).
Replace this://default hover effect $thumb_wrapper = sprintf('<div class="thumb-wrapper %1$s"><a class="round-div %1$s" href="%2$s" title="%3$s"></a><div class="round-div"></div>%4$s</div>', $no_effect_class, get_permalink( get_the_ID() ), get_the_title( get_the_ID() ), $thumb_img );
With this:
$thumb_wrapper = sprintf('<div class="thumb-wrapper %1$s"><div class="round-div"></div><a class="round-div %1$s" href="%2$s" title="%3$s"></a>%4$s</div>', $no_effect_class, get_permalink( get_the_ID() ), get_the_title( get_the_ID() ), $thumb_img );
Or better, replace your file with the original one.
@immelting
Oh I’ve found the problem. You’re using customizr.3.1.5 !
There is that swap!!!!
So upgrade your customizr to the latest stable version, no?
- The topic ‘Add Link To Archives Photos and Add (More… ) Link to the […]’ is closed to new replies.