Very well done with this theme. I have just one question: Is it possible to remove the link from the slider, because I just want to use the slider to show some nice pictures without linking posts. I think I have to comment out something in the âheader-extension.phpâ,⌠Could you give me some support? Thanks!
Thank you for the assistance on this - it worked first time
However, there is a slight issue: When the mouse pointer is on the slider image, an âaltâ box now puts in an appearance. Itâs displaying the title (in my case) but I donât want to see the alt box. I have tried fiddling around but to no avail. Please assist.
I would also like to know whether a theme update (or any other update) would necessitate me patching the .php file again. Ta ever so much âŚ
Oops, Iâm back with another problem on http://laos.twocrocs.com/ The slider images are being cut off at the top. I have uploaded images with dimensions 1018 x 540 (thatâs what they are in the media library) but when they are displayed, the height has been changed to 460: . Again Iâve messed around but to no avail. I really would appreciate a solution to this issue.
Images are resized automatically to fit slider. You can change default values via functions.php file. Right now featured image size is defined like this
add_image_size( 'slider', 1018, 460, true );
You can adjust that but you will have to regenerate thumbnails because WordPress doesnât do it automatically. There are several plugins for that, such as http://wordpress.org/plugins/regenerate-thumbnails/
Thanks Aigars, I really do appreciate your assistance - support at the level you provide is rare indeed!
A few points though:
Obviously I want to maintain the site as is. So what kind of update(s) will necessitate me having to make the changes to the .php files again?
Is there any chance of getting rid of the âaltâ box? If not, I suppose I could un-title the relevant posts âŚ
Regarding the slider image size, the on-screen Theme documentation (Theme Options) states that the size is ârecommendedâ. Clearly, as matters stand, the recommended size is actually mandatory. Iâm definitely not going to be the only one facing this issue so perhaps it needs to be addressed at the Theme level. Bear in mind that a thin wide image is expected for a header slider but something in the body really should be more flexible. Many people will want to show off their images in this slider and 1018 x 460 isnât a good size for doing that - the height needs to be user definedâŚ
Any changes made directly inside theme files (css, php, js, etc) will be overwritten with the theme update. WordPress doesnât bother checking whatâs new in the theme and it overwrites the entire directory.
The best options is to make all these changes via Child Theme. I can help you to setup slider properly via Child Theme but it is out of scope of free support as it takes a lot of time to implement.
It is not âmandatoryâ, because any image size will work just fine. The best results will be when you use recommended image size since it wonât be resized at all.
Resizing is done because it is requires as WordPress.org âbest practicesâ. If developers would allow to upload any image size without resizing, some would come up with 30MB image directly from Canon EOS 5D Mark III or similar camera. Imagine website when 10 images would be used as featured images and 5 for slider. This is why we must limit image size.
Featured image size can be simply changed by adding this value to Child Theme functions.php file and it will overwrite original values.
Does the mod for removing links from the slider (detailed above) work for the current version 1.5.0? If not, can you show the code needed?
A future feature: a config option to turn on/off on the slider links. Right now I donât need them however, can imagine situations where it can be really useful have the links.
This is a must have update because it fixes several bugs such as Navigation bug, Page and Blog title placement. Other changes are translation related but many users will highly appreciate them.
WordPress doesnât recognize custom files via Child Theme and will work only with page.php, single.php, archive.php and other default files. However, you can modify and copy/paste functions from header-extension.php into Child Theme functions.php and it will work like it should.It will basically replace original functions.
I had successfully used the code above to remove links from the featured slider in the last version of Travelify. I just updated the theme and re-inserted the code above into header-extensions.php but there are still links in the featured slider (which I would like to remove).
Thanks for this impressive wp-theme Travelify! I managed to find the file you said header-extensions.php and I replaced the code with yours. Did update in each post and now there are no links, it works like a champ ahah! Many thanks!
The full path for the file is themes > travelify > library > structure Maybe this can help someone