Support ForumCustomizing the portfolio shortcode’s filter output – adding custom code – Support Forum https://support.ishyoboy.com/forums/topic/customizing-the-portfolio-shortcodes-filter-output-adding-custom-code/feed Thu, 02 Jan 2025 19:58:46 +0200 http://bbpress.org/?v=2.5.12-6148 en-US https://support.ishyoboy.com/forums/topic/customizing-the-portfolio-shortcodes-filter-output-adding-custom-code/#post-5034 <![CDATA[Customizing the portfolio shortcode’s filter output – adding custom code]]> https://support.ishyoboy.com/forums/topic/customizing-the-portfolio-shortcodes-filter-output-adding-custom-code/#post-5034 Mon, 13 Oct 2014 18:51:22 +0000 simonadp hello, i need to add some customized code just after the filter categories menu in the portfolio page (just in the middle, under the filters and before the gallery items). but i don’t understand which file i should edit.

it’s maybe “taxonomy-portfolio-category.php”?

where can i add my customized row with my own code?

thank you

]]>
https://support.ishyoboy.com/forums/topic/customizing-the-portfolio-shortcodes-filter-output-adding-custom-code/#post-5048 <![CDATA[Reply To: Customizing the portfolio shortcode’s filter output – adding custom code]]> https://support.ishyoboy.com/forums/topic/customizing-the-portfolio-shortcodes-filter-output-adding-custom-code/#post-5048 Mon, 13 Oct 2014 19:32:21 +0000 IshYoBoy Hey,

You need to override the template for the portolio and so ish_portfolio.php file.

Please check the following topic and use the same steps to edit the ish_portolio.php file

Override shortcode template in a child theme

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/customizing-the-portfolio-shortcodes-filter-output-adding-custom-code/#post-5053 <![CDATA[Reply To: Customizing the portfolio shortcode’s filter output – adding custom code]]> https://support.ishyoboy.com/forums/topic/customizing-the-portfolio-shortcodes-filter-output-adding-custom-code/#post-5053 Mon, 13 Oct 2014 21:45:31 +0000 simonadp thank you. understood it!
but i don’t know exactly where can i add my code and how to change it relating to your syntax.

i need to add this shortcode, just before the thumbnails grid:

<?php echo do_shortcode(‘[searchandfilter id=”1″]’); ?>

can you help me? how should i write it in order to integrate it in your code?
thanks!

]]>
https://support.ishyoboy.com/forums/topic/customizing-the-portfolio-shortcodes-filter-output-adding-custom-code/#post-5061 <![CDATA[Reply To: Customizing the portfolio shortcode’s filter output – adding custom code]]> https://support.ishyoboy.com/forums/topic/customizing-the-portfolio-shortcodes-filter-output-adding-custom-code/#post-5061 Wed, 15 Oct 2014 09:46:37 +0000 IshYoBoy Hi,

Please check the ish_portfolio.php file and read through the code to see where you want it displayed.

E.g. search for the lines with this code:

You will need to add your code after these lines. But you cannot echo the output directly. You will have to output it to a variable and then return its content. So instead of:

echo do_shortcode('[searchandfilter id="1"]');

you will have to add the following code:

But if you are not sure what you are doing please get the help of a PHP/WordPress developer to help you out ;)

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

]]>