Forum Replies Created
-
AuthorPosts
-
This reply has been marked as private.This reply has been marked as private.This reply has been marked as private.This reply has been marked as private.This reply has been marked as private.
Thank you so very much :) this can be closed
This reply has been marked as private.Note to a moderator,
Kindly look into my functions.php file.
– I am using the code guenni gave me and the excerpts work fine.
– I have enabled to load jquery in footer and changed the last bit of the code he sent me to add_action(‘wp_footer’, ‘custom_excerpt_setting’);I am still experiencing the logos in the portfolio pages not being displayed.
I would really appreciate it if you can help me with this please.
I have also uplaoded new svgs but still encountering same problem
Fixed it thanks :) Can be clsoed
This reply has been marked as private.Hi, the code you gave me previously I have removed it from the functions.php file as it is effecting the logos on the portfolio pages.
I have more code in the functions.php file, its not empty, but I would like to know why when I add your code it effects the logos in the portfolio pages.
worked perfectly. thanks
This can be closed :)
This reply has been marked as private.Thank you so much :D
This reply has been marked as private.reminder :)
reminder :D
function custom_excerpt_setting(){ ?> <script> (function($){ // trim excerpt by words function trimByWord(sentence,wordcount = 20) { var result = sentence; var resultArray = result.split(” “); if(resultArray.length > wordcount){ resultArray = resultArray.slice(0, wordcount); result = resultArray.join(” “) + “…”; } return result; } $(document).ready(function(){ $(‘.read-more-link’).each(function() { $(this).parent().parent().append($(this)); }); $(‘.avia-content-slider .slide-entry-excerpt’).each(function() { $(this).text(function(index, currentText) { return trimByWord(currentText); }); }); }); })(jQuery); </script> <?php } add_action(‘wp_head’, ‘custom_excerpt_setting’);
Kindly find the details below.
Also I have added the code in the functions.php file and the css code in the appearance >> customiser and I am displayed with this..
I did recreate and uploaded the svg again but the problem is still persisting.
I have also updated the theme to the new version, but whenever I add guenni’s code the svg icons disappears only from the portfolio pages
Update:
I noticed that the problem is from this code
function custom_excerpt_setting(){
?>
<script>
(function($){
// trim excerpt by words
function trimByWord(sentence,wordcount = 20) {
var result = sentence;
var resultArray = result.split(” “);
if(resultArray.length > wordcount){
resultArray = resultArray.slice(0, wordcount);
result = resultArray.join(” “) + “…”;
}
return result;
}
$(document).ready(function(){
$(‘.read-more-link’).each(function() {
$(this).parent().parent().append($(this));
});$(‘.avia-content-slider .slide-entry-excerpt’).each(function() {
$(this).text(function(index, currentText) {
return trimByWord(currentText);
});
});
});
})(jQuery);
</script>
<?php
}
add_action(‘wp_head’, ‘custom_excerpt_setting’);Can you please tell me how to fix it as this is the code I was given for the excerpt and when I remove it, logos work, but when I add it i get the previous error.
This reply has been marked as private.This reply has been marked as private.Thank you for this. It can be closed :D
Hi Yogit ,
Thanks for this.
Now I need to add the privacy policy and Terms and coditions in the copyright section but in the middle of the page.
Whenever I try and do that and add it with the copyright text, its obviously not being centered but its being displayed after the text.
How can I center it to have it like the below
Also how can I reduce the height of the gray area please?
This reply has been marked as private.Worked perfectly.
Thanks YOU CAN CLOSE THIS :)
Hi Ismheal,
I have added the code in the functions.php and also the css code, but still nothing changed..
I want to change the read more buttons in the blogs archive page.
Regards
perfect thank you so very much.
This can be closed :D
-
AuthorPosts