-
AuthorPosts
-
April 10th, 2013 at 22:47 #5029Gabi
Hi Gang!
Does anyone have a clue on how to replace the slider image or portion with a static image on the presentation page?
The reason is to have an image map on that static image.
thanks,
Gabi
April 11th, 2013 at 13:47 #5044Hi Gabi!
Go to “Presentation Page” in Mantra Settings :
- Enable Presentation Page
- @Slides selecte Custom Slides
- Delete the content of all 5 Slides
- Put the picture or content to 1 Slide
Have fun!
April 11th, 2013 at 17:20 #5067GabiMihai!
Thanks a ton for your response! The question remain of where to place the code containing the image map info.
Thanks a lot!
Gabi
April 16th, 2013 at 21:49 #5186GabiHi Gang!
Any suggestion on this one on where should I tweak the code of a single slide image to make it as an image map? Thanks!
Gabi
April 18th, 2013 at 18:19 #5265ZedCryout Creations mastermindYou can only do that if you hardcode your HTML instead of the slider in the presentation page file – includes/theme-frontpage.php
If you like our creations, help us share by rating them on WordPress.org.
Please check the available documentation and search the forums before starting a topic.April 18th, 2013 at 23:16 #5276GabiThanks a lot Zed!!
I was able to add an image map but unfortunately the areas aren’t becoming links. I tried everything, using the id tag only (per HTML 5.0), and both (usemap and id). No change.
Any idea what can be wrong? Do you mind taking a look at the code?
Here’s the link: http://www.gabkits.com/hiswheels/
thanks!
Gabi
April 19th, 2013 at 18:55 #5296ZedCryout Creations mastermindI see you left the slider intact and you’re trying to use the map over the slider. This doesn’t work
You need to remove (or comment out) the slider and replace it with the HTML for your image map.
The slider starts with
`if ($mantra_slideType != ‘Custom Slides’) { `
and ends before
`// Second FrontPage title`
If you like our creations, help us share by rating them on WordPress.org.
Please check the available documentation and search the forums before starting a topic.April 22nd, 2013 at 19:20 #5356GabiThanks Zed –
Sorry to bother you, but I commented out, even deleted the block of code you mentioned and I got a blank page instead. Can there possibly be something in that chunk of code that need to stay there?
Thanks!
Gabster
April 22nd, 2013 at 22:17 #5358GabiAh – nevermind –
Fixed. I’ve been cutting more code than needed. Thanks so much for your help!!
Gabi.
April 24th, 2013 at 21:10 #5441ZedCryout Creations mastermindI should let you know that the proper way to do this is via a child theme.
Your child theme will need 3 files:
- style.css (with the content documented in the WordPress tutorial)
- functions.php with the content below:
`<?php
require_once(dirname(__FILE__) . “/theme-frontpage.php”);
?>`- and the modified theme-frontpage.php file copied over from mantra/includes/ to the root of your child theme’s folder.
This will make sure you will not lose your change at the next update.
If you like our creations, help us share by rating them on WordPress.org.
Please check the available documentation and search the forums before starting a topic.April 25th, 2013 at 20:55 #5508GabiZed –
Thank you! Yes, I should do that properly. Thanks for the help!
Gabi
-
AuthorPosts
The topic ‘Replace Slider with Static Image?’ is closed to new replies.