-
-
Is there a way to include an HTML link in the Portfolio Project Details? I’d like to link to a particular person’s bio page.
-
-
Also, how do I modify the size of the image on the same portfolio page? It’s a little too big, and I cannot figure out where to resize the image.
Thank you!
-
Hello,
To make the portfolio details as links, go to file \includes\view\portfolio\single-container.php and find this line:
<li><span class="title"><?php echo esc_attr($cl_redata['single_portfolio_custom_params'][$i]) ?></span><span><?php echo esc_attr($cl_redata['single_portfolio_custom_fields'][$i]) ?></span></li>
Replace with this:
<li><span class="title"><?php echo esc_attr($cl_redata['single_portfolio_custom_params'][$i]) ?></span><span><?php echo $cl_redata['single_portfolio_custom_fields'][$i] ?></span></li>
-To edit portfolio image sizes, please refer to this article.
Best regards!
-
Thank you so much for the info to allow for links in the portfolio details. That’s a huge addition, and something I’d suggest for future updates.
As for the portfolio image sizes, how do I know which one is for the single portfolio large image? There’s port2, port3, port4, etc. and I have no idea which one changes the image on the single portfolio page.
Also, I’ve seen posts regarding removing the slug on the main portfolio page, but is there a way to show the actual category name, rather than the slug? I’ve already removed the slug using this method:
<span style=”color: #393d40; font-family: ‘Open Sans’, ‘Helvetica Neue’, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;”>Go to file includes\view\portfolio\loop-grid.php and find this line:</span><br style=”box-sizing: border-box; color: #393d40; font-family: ‘Open Sans’, ‘Helvetica Neue’, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;” /><code style=”box-sizing: border-box; font-family: Inconsolata, Consolas, Monaco, ‘Lucida Console’, monospace; font-size: 15px; color: #444444; display: inline-block; padding: 0px 5px; line-height: 24px; border: 1px solid #dddddd; max-width: 95%; vertical-align: middle; margin-top: -3px; background: #f9f9f9;”><h6><?php echo esc_html($sort_classes) ?></h6><br style=”box-sizing: border-box; color: #393d40; font-family: ‘Open Sans’, ‘Helvetica Neue’, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;” /><span style=”color: #393d40; font-family: ‘Open Sans’, ‘Helvetica Neue’, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;”>Replace with this:</span><br style=”box-sizing: border-box; color: #393d40; font-family: ‘Open Sans’, ‘Helvetica Neue’, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 22px;” /><code style=”box-sizing: border-box; font-family: Inconsolata, Consolas, Monaco, ‘Lucida Console’, monospace; font-size: 15px; color: #444444; display: inline-block; padding: 0px 5px; line-height: 24px; border: 1px solid #dddddd; max-width: 95%; vertical-align: middle; margin-top: -3px; background: #f9f9f9;”><h6><?php echo ” ” ?></h6>
But is it possible to display the Category itself, rather than the category slug? I’m guessing I’d replace the ” ” with code calling the Category name, rather than the slug, but I’m not sure what that code is.
Thanks for your help!
-
Sorry – all that html in the above message is supposed to be this:
Go to file includes\view\portfolio\loop-grid.php and find this line:
<h6><?php echo esc_html($sort_classes) ?></h6>
Replace with this:
<h6><?php echo ” ” ?></h6>
-
Hello,
-Thank you for your suggestion. I will refer it to the developer team.
-To change the single portfolio image, go to the file of the style you are using (include/view/portfolio/loop-fullwidth.php) and find this line:
esc_url(codeless_image_by_id(get_post_thumbnail_id(), '', 'url'))
This is the code used to pre-define the images sizes. Add one of the current plans. Example:
esc_url(codeless_image_by_id(get_post_thumbnail_id(), 'port3', 'url'))
will make the images as set in:function codeless_images_sizes(){ add_image_size( 'port3', 600, 600, true );
in file functions.php.
Chose the best that fits your needs.-Go to file include/view/portfolio/loop-grid.php and find this line:
$sort_classes .= $cat->slug.' ';
Edit to this:
$sort_classes .= $cat->name.' ';
Best regards!
-
Thank you! I haven’t had a chance to try this yet, but I’ll let you know if I run into any problems.
Another question on this specific page: https://codeless.co/tower/business/about-us-2-2/
I’d like to make the images and name below the image under Our Team clickable. How do I do that? I want each picture/name to go to their individual bio page.
Thank you!
-
I started another thread for my Team page question.
I went ahead and was able to change the picture size in the portfolio section, but the image doesn’t actually display at the size I set. I’ve tried to make it square, but it won’t work.The picture is set as 460 x 275, but it displays as 444 x 266. I’d actually like it to be more like 440 x 440. Even when I change the setting on the functions.php, it doesn’t change the image size. What am I doing wrong?
-
Hello,
Did you import the image again after changing it’s dimensions in file function.php? Please make sure you did first. Let us know.
Best regards!
-
I was able to get everything to work as requested.
Thanks!
-
You must be logged in to reply to this topic.