Rename Anchors

ls4680's picture
ls4680
Tue, 07/01/2014 - 02:09
#1
Rename Anchors

Currently the md_Alpine Theme has several anchors (e.g. #about, #team, #contact). How can we change these so we can create links with custom anchor names.

cindy's picture
cindy
Tue, 07/01/2014 - 05:20

Hi,
You can change it in theme_folder/template/page--front.tpl.php
It is noticed that you change only ID

Cindy,

ls4680's picture
ls4680
Mon, 07/07/2014 - 00:56

In the team section of page--front.tpl.php
after only changing the id="team" to id="products"
the titles of the sections are now above the top of the images.
Before, they were on the image.

On a “hover” over the image it just zooms larger.
Before, the image would darken and then image would zoom inside a static frame.

We flushed the cache and it is still incorrect.

cindy's picture
cindy
Mon, 07/07/2014 - 03:23

Hi, The id="team" should be kept like this:

 <div id="products">
 <div id="team">
 </div>
</div>

If the problem still occurs, please send us your site's link and log-in account via [email protected], we will support you Cindy,

ls4680's picture
ls4680
Mon, 07/07/2014 - 14:01

SOLVED!
You do not CHANGE the id= but you have to ADD an additional id=
Also in this case it is NOT a "div" but a "section"
Below is the correct resulting code snippet for adding a "custom anchor"

<?php if($page['team']):?>
<!-- Team Section -->
<section id="CUSTOM_ANCHOR">
<section id="team" class="section-content">
<?php print render($page['team']);?>
</section>
</section>
<!-- Team Section -->

cindy's picture
cindy
Mon, 07/07/2014 - 22:42

Hi,
Thank you very much for your feedback

Regards,

Log in or register to post comments
Have More Idea?

We are here to build your website!

No Universal solution fits all special business requirements. Our experienced team is ready with ideas and state-of-the-art technical solutions to consult the best solution within your budget.