Support Forum3D Cube portfolio -category description – Support Forum https://support.ishyoboy.com/forums/topic/3d-cube-portfolio-category-description/feed/ Fri, 04 Sep 2026 10:38:00 +0200 http://bbpress.org/?v=2.5.12-6148 en-US https://support.ishyoboy.com/forums/topic/3d-cube-portfolio-category-description/#post-4485 <![CDATA[3D Cube portfolio -category description]]> https://support.ishyoboy.com/forums/topic/3d-cube-portfolio-category-description/#post-4485 Fri, 05 Sep 2014 14:11:09 +0000 moliner First, congratulations for your excellent theme.

The question I have is about the masonry 3D cube portfolio. How could I display item category description on mouse over.(instead of category name).

Hope you can help.

]]>
https://support.ishyoboy.com/forums/topic/3d-cube-portfolio-category-description/#post-4488 <![CDATA[Reply To: 3D Cube portfolio -category description]]> https://support.ishyoboy.com/forums/topic/3d-cube-portfolio-category-description/#post-4488 Fri, 05 Sep 2014 15:11:45 +0000 IshYoBoy Hey,

you will have to amend the PHP template for the portfolio shortcode. And find the place where the category is displayed and instead of the name, display other data.

Have a look at this thread:

Override shortcode template in a child theme

In your case you need to be working with “ish_portfolio.php” file.

Cheers

A 5 star rating is always a great motivation for us if you are happy with our theme or support!
Themeforest | MojoMarketplace | Creative Market

]]>
https://support.ishyoboy.com/forums/topic/3d-cube-portfolio-category-description/#post-4491 <![CDATA[Reply To: 3D Cube portfolio -category description]]> https://support.ishyoboy.com/forums/topic/3d-cube-portfolio-category-description/#post-4491 Fri, 05 Sep 2014 17:58:18 +0000 moliner Will have a try now, but am sure it will work. Thank you for fast reply.

Best regards

]]>
https://support.ishyoboy.com/forums/topic/3d-cube-portfolio-category-description/#post-4492 <![CDATA[Reply To: 3D Cube portfolio -category description]]> https://support.ishyoboy.com/forums/topic/3d-cube-portfolio-category-description/#post-4492 Fri, 05 Sep 2014 18:38:48 +0000 moliner Lastly no, was too optimistic. Have changed line 418 in ish_portfolio.php like so:
$return .= ‘<span class=”ish-p-cat”>’ . $category_description . ‘</span>’;

$return .= ‘<span class=”ish-p-cat”>’ . category_description() . ‘</span>’;

but must be doing something wrong. If you see it at first sight, let me know please, if not do not worry, I understand that this is not really a kind of question to ask support from.

Regards

]]>
https://support.ishyoboy.com/forums/topic/3d-cube-portfolio-category-description/#post-4496 <![CDATA[Reply To: 3D Cube portfolio -category description]]> https://support.ishyoboy.com/forums/topic/3d-cube-portfolio-category-description/#post-4496 Sat, 06 Sep 2014 08:20:57 +0000 IshYoBoy Hi,

the problem in your examples are that you have tried to first access a variable that does not exist. And in the second a function that does not exist.

If you view the original code you will see that we have used a variable “$category”. Now you should look for this variable in the code to see where a value is assigned to it.

Yo will find it in these lines:

okay so we are getting some value from the $term object and we are getting the property “name”.

So what the heck is this $term object and what other values does it have? Lets see how the $term is created:

$terms = get_the_terms( get_the_ID(), 'portfolio-category' );

So we are using the “get_the_terms()” function to get all terms and then choose the first one. Well let’s have a look what info this function provides. Let’s check the codex:

https://codex.wordpress.org/Function_Reference/get_the_terms

We can find in there that:

Each term object will contain the following fields:

Cool so there is “description”. Well let’s use “$term->description” instead of “$term->name”.

Tadaaaa ;) Hope this helps

Cheers

A 5 star rating is always a great motivation for us if you are happy with our theme or support!
Themeforest | MojoMarketplace | Creative Market

]]>
https://support.ishyoboy.com/forums/topic/3d-cube-portfolio-category-description/#post-4498 <![CDATA[Reply To: 3D Cube portfolio -category description]]> https://support.ishyoboy.com/forums/topic/3d-cube-portfolio-category-description/#post-4498 Sat, 06 Sep 2014 10:08:12 +0000 moliner Thank you, this is not just a tip but a class I needed.

I am definitely your superfan!

]]>
https://support.ishyoboy.com/forums/topic/3d-cube-portfolio-category-description/#post-4506 <![CDATA[Reply To: 3D Cube portfolio -category description]]> https://support.ishyoboy.com/forums/topic/3d-cube-portfolio-category-description/#post-4506 Mon, 08 Sep 2014 08:43:35 +0000 IshYoBoy Hey pal,

Very happy to hear that ;) Now you at least have a picture how to get to the information you need in case anything pops up next.

If you think we deserve it, we really love to get 5 star ratings on ThemeForest ;)
Have fun building your new webpage!

Cheers

A 5 star rating is always a great motivation for us if you are happy with our theme or support!
Themeforest | MojoMarketplace | Creative Market

]]>
https://support.ishyoboy.com/forums/topic/3d-cube-portfolio-category-description/#post-4632 <![CDATA[Reply To: 3D Cube portfolio -category description]]> https://support.ishyoboy.com/forums/topic/3d-cube-portfolio-category-description/#post-4632 Fri, 12 Sep 2014 09:34:33 +0000 moliner Of course you deserve it! You’ve got 5 star recommendation from me. Cheers

]]>
https://support.ishyoboy.com/forums/topic/3d-cube-portfolio-category-description/#post-4639 <![CDATA[Reply To: 3D Cube portfolio -category description]]> https://support.ishyoboy.com/forums/topic/3d-cube-portfolio-category-description/#post-4639 Fri, 12 Sep 2014 13:06:12 +0000 IshYoBoy Thanks, pal!

A 5 star rating is always a great motivation for us if you are happy with our theme or support!
Themeforest | MojoMarketplace | Creative Market

]]>
https://support.ishyoboy.com/forums/topic/3d-cube-portfolio-category-description/#post-4641 <![CDATA[Reply To: 3D Cube portfolio -category description]]> https://support.ishyoboy.com/forums/topic/3d-cube-portfolio-category-description/#post-4641 Fri, 12 Sep 2014 13:40:29 +0000 moliner