infinitepoet
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Nisarg] Child theme menu busted after updateSame here. I’m not much into the coding part and struggled to create and customize a child theme. Now it has been rendered useless due to the udpate.
Forum: Themes and Templates
In reply to: [Nisarg] More tag not working@asaiintpo
I finally figured it. Ignore my older code. Just use the below code:
function child_custom_excerpt_length( $length ) { return 10; } add_filter( 'excerpt_length', 'child_custom_excerpt_length', 1020 );
if you look at the parent theme functions.php, 999 is the priority assigned to this particular function. The replacing function in child theme has to be assigned a higher priority so that the child theme function overrides parent theme function. The below link helped me
https://code.tutsplus.com/tutorials/a-guide-to-overriding-parent-theme-functions-in-your-child-theme–cms-22623
Forum: Themes and Templates
In reply to: [Nisarg] More tag not working@asaintpo
Somehow the same code is not working for me now!! (not even the word limit feature!)Im at my wit’s end now.
Forum: Themes and Templates
In reply to: [Nisarg] More tag not working@asiantpo, Maybe Falguni (Thanks to her for this wonderful theme!!) or some one who is more experienced would have a better way. Nevertheless, after few hours of trial and error, I could get this done by pasting the following code into the functions.php of my child theme. (ofcourse, you could replace ‘nisargipchild’ with your own nicky whereever it appears). The code is basically picked from the functions.php of the parent theme. Change the number 10 to whatever number of words you want to display as excerpt.
remove_filter( 'excerpt_length', 'custom_excerpt_length' ); function nisargipchild_excerpt_length( $length ) { return 10; } add_filter( 'excerpt_length', 'nisargipchild_excerpt_length' ); function nisargipchild_new_excerpt_more( $more ) { return '...<p class="read-more"><a href="'. esc_url(get_permalink( get_the_ID() )) . '">' . __(' Read More', 'nisarg') . '<span class="screen-reader-text"> '. __(' Read More', 'nisarg').'</span></a></p>'; } add_filter( 'excerpt_more', 'nisargipchild_new_excerpt_more' );
Forum: Themes and Templates
In reply to: [Nisarg] How to replace navbar text ( title ) with an image ?I could get this done. Please see the thread ‘putting a logo in the header’ in the nisarg support
Forum: Themes and Templates
In reply to: [Nisarg] Putting a logo in the header@dirckvdb and all,
After many hours of googling and trying out different ways( I am an infant in HTML coding !! ), I could get my logo into the title bar ( navigation bar) instead of the site title using the following link method:
https://www.ads-software.com/support/topic/replacing-text-header-with-image?replies=7
I guess, the logo height needs to be max 50px in order not to stretch beyond the navigation bar. Other work around would be to increase navigation bar height.
Forum: Themes and Templates
In reply to: [Nisarg] Putting a logo in the headerForum: Themes and Templates
In reply to: [Nisarg] Putting a logo in the headerHi Falguni,
I am looking for the same solution.
I’m all set to start my website except that I cant put in the logo at the left of the navigation bar, beside the site title.There are some other themes which support logo directly from Appearance>Customize>Site Identity. Would be great to have such option or atleast provide a workaround until your next update!!
Thanks for the great theme!