Andreas Ebbert-Karroum
Forum Replies Created
-
AuthorPosts
-
Andreas Ebbert-Karroum
ParticipantThanks, that fixed it.
Andreas Ebbert-Karroum
ParticipantSomehow I cannot post links, they’re always marked as spam.
Example: youlius-award dot de slash live
February 21, 2018 at 10:42 am in reply to: In Navbar also all children of current page are highlighter #8002Andreas Ebbert-Karroum
ParticipantHi,
this is a bug in the theme, IMHO. I’ve fixed it by adjusting the css selector to only select the link directly below the list item, not ALL links below the list item:
In css/responsive.css, line 90:
.sitenav ul li a:hover, .sitenav ul li.current_page_item > a{color:#0294CF; border:none !important;}
/* .sitenav ul li a:hover, .sitenav ul li.current_page_item a{color:#0294CF; border:none !important;} */In inc/bizgrowth-customizer.php:
function bizgrowth_custom_css(){
?>
<style type=”text/css”>a, .blog_lists h2 a:hover,
#sidebar ul li a:hover,
/* .sitenav ul li a:hover, .sitenav ul li.current_page_item a,*/
.sitenav ul li a:hover, .sitenav ul li.current_page_item > a,
.services-wrap .one_third:hover h4,
.services-wrap .one_third:hover .MoreLink,
.slide_info .slide_more:hover,
.blog_lists h3 a:hover,
.cols-4 ul li a:hover, .cols-4 ul li.current_page_item a,
.recent-post h6:hover,
.ReadMore:hover,
.fourbox:hover h3
{ color:<?php echo esc_attr( get_theme_mod(‘color_scheme’,’#0294CF’)); ?>;}.pagination ul li .current, .pagination ul li a:hover,
#commentform input#submit:hover,
.nivo-controlNav a.active,
h3.widget-title,
.wpcf7 input[type=’submit’]
{ background-color:<?php echo esc_attr( get_theme_mod(‘color_scheme’,’#0294CF’)); ?>;}/* .sitenav ul li a:hover, .sitenav ul li.current_page_item a, */
.sitenav ul li a:hover, .sitenav ul li.current_page_item > a,
.slide_info .slide_more:hover,
.services-wrap .one_third:hover .MoreLink,
.ReadMore:hover
{ border-color:<?php echo esc_attr( get_theme_mod(‘color_scheme’,’#0294CF’)); ?>;}</style>
<?php
}add_action(‘wp_head’,’bizgrowth_custom_css’);
Link:
Andreas Ebbert-Karroum
ParticipantIMHO this is not a customization, this is a bugfix. I fixed it myself for now, but this piece of code has apparently been reworked in the paid version to show the first 15 words, instead of a hard cut after 100 characters.
And I won’t send my login credentials to anybody, I’m sorry.
Andreas Ebbert-Karroum
ParticipantYeah, I fixed it myself in the meantime, thanks for pointing me to the correct location.
My header.php now uses this to display the first paragraph, max 200 characters, truncated at a word.
$title = get_the_title( $id );
$post = get_post($id);
$content_long = apply_filters(‘the_content’, substr(strip_tags($post->post_content), 0, 400));
$content = strtok(wordwrap($content_long, 200, “…\n”), “\n”);Andreas Ebbert-Karroum
ParticipantHi,
I don’t have the code that you mention, for me the line looks like this:
$content = apply_filters(‘the_content’, substr(strip_tags($post->post_content), 0, 100));
which explains, why the line is truncated after exactly 100 characters.
Why aren’t you using https://codex.wordpress.org/Function_Reference/get_the_excerpt?
Andreas Ebbert-Karroum
ParticipantSo this is a 15 words limit? That’s interesting, I found that nowhere documented.
The problem is, as you can tell from the homepage and the linked page, that the word “zweitwichtigste” is truncated right in the middle of the word. This looks very unfinished to visitors of our website.
My expectation would be to have either:
* A separate field, where I can set the excerpt / teaser text to show up on the slider
* Usage of the <– more –> tag, which was used in the past to seperate the excerpt from the body of the post.Sorry for the delay in answering, this is a spare-time project 🙂
Kind Regards,
AndreasAndreas Ebbert-Karroum
ParticipantI have exactly the same problems, could you solve it?
-
AuthorPosts
