• Resolved NameAlreadyExists1

    (@namealreadyexists1)


    The white box that appears when you hover/mouse-over a thumbnail shows a text of 100 characters – is there anyway to change that so it shows 300-400 characters instead?

    If the answer includes coding, could you please be so kind and explain what to do step by step as I am very new to all this.

    Thank you

Viewing 10 replies - 1 through 10 (of 10 total)
  • Theme Author GavickPro

    (@gavickpro)

    Hello,

    Yes, currently this change needs a coding – you can do it by defining the excerpt limit filter. In the functions.php file of the theme please put the following code:

    function portfolio_new_excerpt_length($length) {
        return 300;
    }
    add_filter('excerpt_length', 'portfolio_new_excerpt_length');
    Theme Author GavickPro

    (@gavickpro)

    We will add an option to control excerpt length in the next version of the theme.

    Thread Starter NameAlreadyExists1

    (@namealreadyexists1)

    Some follow up questions:

    Under the functions.php-area there is a drop down box where I have to select something – what should I select or should I just let it be?

    Shall I just add the coding you gave or should I replace some already there coding with the new coding?
    – if replace, what exactly should I cut out?
    – If just add, where do I add it? just at the end or?

    Theme Author GavickPro

    (@gavickpro)

    Please just add the code at the end.

    And don’t use the dropdown under the file area.

    Thread Starter NameAlreadyExists1

    (@namealreadyexists1)

    Adding the code doesn’t seem to do the trick – it changes nothing?!

    Theme Author GavickPro

    (@gavickpro)

    Did you tried to change the above code to return different values like 5, 50, 100?

    Thread Starter NameAlreadyExists1

    (@namealreadyexists1)

    Yup tried that and even tried creating a new post just to check if that was the problem – nothing changes.

    What to try now? Any good ideas?

    Theme Author GavickPro

    (@gavickpro)

    Please try to activate in the post editor under “Screen options” tab at the top, the excerpt metabox and please put there your text for the portfolio view.

    Thread Starter NameAlreadyExists1

    (@namealreadyexists1)

    It worked! Thank you so much ??

    Theme Author GavickPro

    (@gavickpro)

    Could you rate and review our theme when you finish your work?

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Text in hover/mouse-over box’ is closed to new replies.