4684 comments found.
sorry code was missing
Hello Kaptinlin I included a custom field “thoo” into meta section of the header in order to get url of post thumbnail. It works fine but I have to fill custom field manually every time I write a post. e.g.<link rel="image_src" href="<?php echo get_post_meta($post?>ID, "thoo", true); ?>" />
My question is: Can you tell me how can I retrieve featured image thumblain URL for each post so it will happened automatically. I’m interested in the small size thumbnail 150×150 pix
So I want to replace this<?php echo get_post_meta($post?>ID, "thoo", true); ?>with something else.
thanks kaptinlin
Hi,
Just reply you on previous comment, i use wordpress post featured image.
If you want use custom field for the image, please let me know.
Regards,
KaptinLin
Hello Kaptinlin
I included a custom field “thoo” into meta section of the header in order to get url of post thumbnail. It works fine but I have to fill custom field manually every time I write a post. e.g.My question is: Can you tell me how can I retrieve featured image thumblain URL for each post so it will happened automatically. I’m interested in the small size thumbnail 150×150 pix
thanks kaptinlin
PS.
Hi,
You can add the code below to the bottom of ‘striking/function.php’ file.
set_post_thumbnail_size( 150, 150);
function add_post_thumbnail_src(){
global $post;
if(has_post_thumbnail($post->ID)){
$src = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), array(150,150));
$src = $src[0];
$lin=”\t”;
$output.= “<link rel=\”image_src\” href=\”";
$output.= $src;
$output.= “\” />”;
$output.= “\n\n”;
echo $output;
}
}
add_action(‘wp_head’, ‘add_post_thumbnail_src’);
Regards,
KaptinLin
Hello KaptimLin I did what you suggested and I’m getting this message
Parse error: syntax error, unexpected T_STRING in /home8/centrau8/public_html/bestpanoramas/wp-content/themes/striking/functions.php on line 18
My striking/functions.php file looks like this after the modification.
<?php /* Load the Theme class. */
require_once (TEMPLATEPATH . '/framework/theme.php');
$theme = new Theme();
$theme?>init(array(
'theme_name' => 'Striking',
'theme_slug' => 'striking'
));
set_post_thumbnail_size( 150, 150);
function add_post_thumbnail_src(){
global $post;
if(has_post_thumbnail($post->ID)){
$src = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), array(150,150));
$src = $src[0];
$lin=”\t”;
$output.= “<link rel=\”image_src\” href=\”";
$output.= $src;
$output.= “\” />”;
$output.= “\n\n”;
echo $output;
}
}
add_action(‘wp_head’, ‘add_post_thumbnail_src’);
?>
My website is here http://bestpanoramas.com
Please help
Sorry,
It’s
set_post_thumbnail_size( 150, 150);
function add_post_thumbnail_src(){
global $post;
if(has_post_thumbnail($post->ID)){
$src = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), array(150,150));
$src = $src[0];
$output="\t";
$output.= "<link rel=\"$src\" href=\"";
$output.= $src;
$output.= "\" />";
$output.= "\n\n";
echo $output;
}
}
add_action('wp_head', 'add_post_thumbnail_src');
Regards,
KaptinLin
I did it it works on posts but now I can’t log in to admin panel http://www.bestpanoramas.com/wp-admin/
Warning: Cannot modify header information – headers already sent by (output started at /home8/centrau8/public_html/bestpanoramas/wp-content/themes/striking/functions.php:30) in /home8/centrau8/public_html/bestpanoramas/wp-includes/pluggable.php on line 890
Hi,
You may add extra space in function.php file.
Just remove the space after ?> in the bottom of the file.
Regards,
KaptinLin
also:
1. How can I change the dimensions of the slider?
2. On this page, you will see a grey line between the post and the widget sidebar: http://school.jadboustany.net/?page_id=120 How do I get this to appear on the left side of the post / page area, and also on the right side of the widget area too. Thanks!
Hi,
For the height of slider, you can change it through ‘striking’->‘slidershow’ options page.
For the grey line, do you mean 3 column layout?
Regards,
KaptinLin
1. How do I reduce the white space between the menu and the slider? http://school.jadboustany.net/
2. I’d like to amend the logo in the above site such that the yellow lines stretch the width of the screen. I can do this in photoshop. However, how do I then embed the logo into the header so that it is centered (I will use an image map with hot spots for the links to “Location” and “Donate)? I tried already doing this using the theme logo upload interface but the placement of the logo doesn’t work with something that big. So I figure I need to dump the code for the logo with the image map directly into your header.php file… but I can’t figure out where the code should go or how to center the image !
thanks , great theme.
Hi nknews,
For the questions:
1) You can use custom css code below in ‘striking’->‘general’ options page.
.jqueryslidemenu ul li a {
height: 50px;
line-height:46px;
}
#navigation {
height: 50px;
}
2) For the logo image, you can change the code in ‘striking/header.php’
Locate line 44-46, you will find<div id="logo">
<a href="<?php echo home_url( '/' ); ?>"><img class="ie_png" src="<?php echo $custom_logo; ?>" /></a>
</div>
Change it to your want.
For center the logo, you can learn from http://kaptinlin.com/support/discussion/comment/919/#Comment_919
Regards,
KaptinLin
Can I email you directly, because the metabox doesnt fix the problem I am having
Of course, my email is kaptinlin@gmail.com
Hi,
I am trying to simply create a gallery overview page like this: http://www.sayidoyourway.com/gallery from all my photos in a single portfolio. How can iachieve this?
Kind regards, Rutger
Hi rutegerg,
You can learn from the doucment in the zip package about how to add portfolio page.
If you still confusing it, please let me know.
Regards,
KaptinLin
Thank you for the response, but how do you stop the images in the portfolio from zooming in to the center of the image. I have resized the image,but it just magnifies the image, and then zooms in to the center.
Hi,
You can use ‘Fullsize Image for Lightbox’ option in ‘portfolio item options’ metabox.
Regards,
KaptinLin
Hi again Kaptinlin
Things are going really well with the theme – love it…. but i’ve hit a problem.
Is there any way to upload multiple images into a portfolio? It’s very frustrating adding them one by one when I have about 20 portfolios with around 20 images in each one.
I installed NextGen Gallery and tried to use that instead but I don’t like the overall look of it and it would appear there are conflicts with Striking and NextGen – is that correct?
Look forward to hearing from you
jeni
Hi Jeni,
Glad you love it.
For multiple images into a portflio,
You can learn from
http://kaptinlin.com/support/discussion/comment/1163/#Comment_1163
For NextGen, You can use raw tag to wrap the shortcode. Sample :
[raw][nggallery id=1][/raw]
Regards,
KaptinLin
Many thanks for the NextGen tip
Yes, I know I can add multiple images to a portfolio but that method only allows me to insert one at a time eg. Add Image, browse for it an then insert. And then repeat that process again and again.
Is there any way that when I choose Add Image, I can insert more than one image at a time.
So, in effect, I create portfolio, set the featured image, select Add Image and then add, say 20 images to the portfolio all at the same time
Hope that makes sense!
thanks in advance….jeni
Hi jeni,
That doesn’t support multi image yet, i will think about it in future release.
Regards,
KaptinLin
Hi Kaptinlin
Thank you for the assistance and prompt responses to my last to issues. Those issues have been resolved or the fixes are currently being implemented.
I have only one more issue and it’s a fairly simple but confusing one.
I have the WP Calender plugin installed on my site. The implementation can be seen at: http://wp.costaatt.edu.tt/?page_id=100
The issue shows up when I click on one of the calendar events to view the event details page. The URL that is passed is supposed to have an ampersand (&), but instead, with this theme it’s showing up as ”#038;”, which causes the details page to show up with no data.
For example, the “National Event – Carnival” event link takes the user to: http://wp.costaatt.edu.tt/?page_id=111#038;event=9
when it should take you to: http://wp.costaatt.edu.tt/?page_id=111&event=9
Is there a solution for this problem?
Hi,
Just test your page, it seems works now?
Regards,
KaptinLin
Hi,
Great theme!
I have one small question – I need to write 100% in the title of a page, but when I do, the % sign doesn’t show up in the title or the navigation (although it does show up in the sidebar navigation). I tried putting in the ascii code, but it still didn’t work. What should I do?
Thanks! Lisa
Hi Lisa,
I think the font you used doesn’t contain % sign. You can go to ‘striking’->‘font’ option page, change it to anther, then have a try.
Regards,
KaptinLin
Sorry for a newbie question, how to make blog page homepage?
Hi,
You can learn from http://kaptinlin.com/support/discussion/comment/1521/#Comment_1521
Regards,
KaptinLin
Hi Kaptinlin,
Another question about youtube videos…
How do I tweak the code so that the Youtube videos do NOT show “Up Next” and “Just Watched” at the end of the videos?
Thx,
~P
I have an major problem with the theme’s ability to work with a flash plugin. I’m using the Flash Gallery plugin (http://flash-gallery.com) which allows a photo gallery to be posted onto a page with the use of a shortcode. It has worked fine with other themes until this one.
You can see the resullts at my site: http://wp.costaatt.edu.tt/?page_id=547
I know the theme supports Flash video. Does it support other Flash content? Is there a way to use the shortcode with this theme to get the gallery to show up properly?
Hello there,
When I add a portfolio item, although i disable “Read More” button, it still appears.
http://www.caribbean-diving.net/gallery/
Looking for a way to solve this.
Thank you.
Hi,
You can add more=”false” to portfolio shortcode.
Sample
[portfolio column="4" max="8" title="true" desc="true" more="false"]
Regards,
KaptinLin
Thank for your quick reply.
I did that but it did not change anything. Problem still continues.
Any further suggestions?
Hi,
Can you give me a permission to your wordpress admin panel?
I will help you go into check the issue.
My email is kaptinlin@gmail.com
Regards,
KaptinLin
Sure. I am emailing you now.
Hi Kaptinlin,
it works on some pages, the timthumb.php but not on others!
eg: https://zimbabweinternational.com/portfolio/flights-to-zimbabwe/
?
Hi,
Please don’t leave space in the name of folder.
See below
wp-content/uploads/images/travel and tourism/
Rename ‘travel and tourism’ to ‘travel_and_tourism’ or something you want.
Hope this will helps.
Regards,
KaptinLin
having an issue with 3 column tags [one_third] on my website
http://dwightstones.com/?page_id=4
any ideas?
Hi,
You can use
[one_third] Column 1 [/one_third] [one_third] Column 2 [/one_third] [one_third_last] Column 3 [/one_third_last]
instead.
Also, you should change the width of image in 3rd column to 294px. It expand the column.
Regards,
KaptinLin
Hello KaptinLin few questions about your awesome theme
1. Can you add support for shortcodes in the “Custom Header Introduce Text” especially tabs and buttons
2. I would like to create a donate button in all posts on my website, but what if I’ll change the donate link to something else in the future and I’ll have to edit all my posts and change the button link in all my posts. Is there a way to create a new shortcode for button with predefined link, so that in the future I’ll have to edit only the “master shortcode button” in some kind of library of shortcodes and all my posts will be updated automagically 
thanks
Hi,
1) You can use custom cufon code for extra texts. You can learn from the document about these.
2) You can add the code below to the bottom of ‘striking/framework/shortcodes/buttons.php’ file.
function theme_donate_button($atts, $content = null, $code) {
extract(shortcode_atts(array(
'id' => false,
'class' => false,
'size' => 'small',
'link' => 'http://YOUR_DONATE_LINK',
'linktarget' => '',
'color' => 'gray',
'bgcolor' => '',
'width' => false,
'textcolor' => '',
'hoverbgcolor' => '',
'hovertextcolor' => '',
'full' => "false",
'align' => false,
'button' => "false",
), $atts));
$id = $id?' id="'.$id.'"':'';
$full = ($full==="false")?'':' full';
$color = $color?' '.$color:'';
$class = $class?' '.$class:'';
$link = $link?' href="'.$link.'"':'';
$linktarget = $linktarget?' target="'.$linktarget.'"':'';
$hoverbgcolor = $hoverbgcolor?($bgcolor?' data-bg="'.$bgcolor.'"':'').' data-hoverBg="'.$hoverbgcolor.'"':'';
$hovertextcolor = $hovertextcolor?($textcolor?' data-color="'.$textcolor.'"':'').' data-hoverColor="'.$hovertextcolor.'"':'';
$bgcolor = $bgcolor?' style="background-color:'.$bgcolor.'"':'';
$width = $width?'width:'.$width.'px;':'';
$textcolor = $textcolor?'color:'.$textcolor.';':'';
if($align != 'center' && $align !== false){
$aligncss = ' align'.$align;
}else{
$aligncss = '';
}
if($button == 'true'){
$tag = 'button';
}else{
$tag = 'a';
}
$content = '<'.$tag.$id.$link.$linktarget.$bgcolor.$hoverbgcolor.$hovertextcolor.' class="button '.$size.$color.$full.$class.$aligncss.'"><span'.(($textcolor!==''||$width!='')?' style="'.$textcolor.$width.'"':'').'>' . trim($content) . '</'.$tag.'>';
if($align === 'center'){
return '<p class="center">'.$content.'</p>';
}else{
return $content;
}
}
add_shortcode('donate_button','theme_donate_button');
Change ‘YOUR_DONATE_LINK’ to you want.
Then use donate_button shortcode instead of the button shortcode without link.
Regards,
KaptinLin
works great kaptinlin, thank you
I love the theme. How do you stop the images from zooming. Ive re-sized the image, but for the slider and the portfolio images they zoom in to the middle of the picture which isnt flattering.
Hi,
The defualt size of slider is 960×440px. You can re-size the image before uploading to wordpress.
Regards,
KaptinLin
Hi
Just purchased and installed “Striking”. Excellent work.
I have 2 questions:
How do I get a Featured Image on a regular page (not a portfolio) to display? I know the documentation states the procedure, but it’s still not displaying when I set the image as the Featured Image.
How do I remove the “Home” link on the top menu?
Hi,
The page doesn’t support featured image.
You can use image shortcode.
Learn from http://kaptinlin.com/themes/striking/shortcodes/images/
For the second quesion, you can use wordpress built-in menu.
Go to ‘striking’->‘general’ options page to enable it.
Then go to ‘Appearance’->‘menus’ options page to config it.
Regards,
KaptinLin