-
AuthorPosts
-
March 23, 2015 at 1:06 am #204920
Hello, how can I make the buttons in the Hero module open in a new window?
Some of the call to actions I want to open a website in a different window; some of them I want to open in the same window.Adam M ModeratorAdam M
- Join date:
- May 2014
- Posts:
- 5159
- Downloads:
- 33
- Uploads:
- 66
- Thanks:
- 95
- Thanked:
- 1271 times in 1235 posts
March 23, 2015 at 11:20 pm #564316Sure: http://www.sceintology dot org.au
Adam M ModeratorAdam M
- Join date:
- May 2014
- Posts:
- 5159
- Downloads:
- 33
- Uploads:
- 66
- Thanks:
- 95
- Thanked:
- 1271 times in 1235 posts
March 24, 2015 at 7:05 am #564367Hi @infinart,
You can navigate to root_foldertemplatesuberacmherotmpl and make a copy of file style-1.php then rename it to style-9.php. Open file style-9.php you will see 2 a tags look like this :
<a href
just update both of them, add attribute target as below :
<a target="_blank" href
Now if you want the button open in same window, use style-1 and style-9 for button that you want to open in new window instead.
June 26, 2015 at 4:35 am #575566Hi, I tried this but it didn’t work.
I replaced:
<a href="<?php echo trim($btnFirstLink); ?>" title="<?php echo trim($btnFirstText); ?>" class="btn btn-primary btn-rounded"><?php echo trim($btnFirstText); ?></a>
<?php endif; ?><?php if( trim($btnSecondLink)) :?>
<a href="<?php echo trim($btnSecondLink); ?>" title="<?php echo trim($btnSecondText); ?>" class="btn btn-rounded btn-border"><?php echo trim($btnSecondText); ?></a>
<?php endif; ?>WITH:
<a target="_blank" href="<?php echo trim($btnFirstLink); ?>" title="<?php echo trim($btnFirstText); ?>" class="btn btn-primary btn-rounded"><?php echo trim($btnFirstText); ?></a>
<?php endif; ?><?php if( trim($btnSecondLink)) :?>
<a target="_blank" href"<?php echo trim($btnSecondLink); ?>" title="<?php echo trim($btnSecondText); ?>" class="btn btn-rounded btn-border"><?php echo trim($btnSecondText); ?></a>
<?php endif; ?>And selectet “style=9” in the module: SCIENTOLOGY: A DECADE OF GREAT EXPANSION
Is this correct?
June 26, 2015 at 4:35 am #641896Hi, I tried this but it didn’t work.
I replaced:
<a href="<?php echo trim($btnFirstLink); ?>" title="<?php echo trim($btnFirstText); ?>" class="btn btn-primary btn-rounded"><?php echo trim($btnFirstText); ?></a>
<?php endif; ?><?php if( trim($btnSecondLink)) :?>
<a href="<?php echo trim($btnSecondLink); ?>" title="<?php echo trim($btnSecondText); ?>" class="btn btn-rounded btn-border"><?php echo trim($btnSecondText); ?></a>
<?php endif; ?>WITH:
<a target="_blank" href="<?php echo trim($btnFirstLink); ?>" title="<?php echo trim($btnFirstText); ?>" class="btn btn-primary btn-rounded"><?php echo trim($btnFirstText); ?></a>
<?php endif; ?><?php if( trim($btnSecondLink)) :?>
<a target="_blank" href"<?php echo trim($btnSecondLink); ?>" title="<?php echo trim($btnSecondText); ?>" class="btn btn-rounded btn-border"><?php echo trim($btnSecondText); ?></a>
<?php endif; ?>And selectet “style=9” in the module: SCIENTOLOGY: A DECADE OF GREAT EXPANSION
Is this correct?
June 26, 2015 at 4:35 am #740557Hi, I tried this but it didn’t work.
I replaced:
<a href="<?php echo trim($btnFirstLink); ?>" title="<?php echo trim($btnFirstText); ?>" class="btn btn-primary btn-rounded"><?php echo trim($btnFirstText); ?></a>
<?php endif; ?><?php if( trim($btnSecondLink)) :?>
<a href="<?php echo trim($btnSecondLink); ?>" title="<?php echo trim($btnSecondText); ?>" class="btn btn-rounded btn-border"><?php echo trim($btnSecondText); ?></a>
<?php endif; ?>WITH:
<a target="_blank" href="<?php echo trim($btnFirstLink); ?>" title="<?php echo trim($btnFirstText); ?>" class="btn btn-primary btn-rounded"><?php echo trim($btnFirstText); ?></a>
<?php endif; ?><?php if( trim($btnSecondLink)) :?>
<a target="_blank" href"<?php echo trim($btnSecondLink); ?>" title="<?php echo trim($btnSecondText); ?>" class="btn btn-rounded btn-border"><?php echo trim($btnSecondText); ?></a>
<?php endif; ?>And selectet “style=9” in the module: SCIENTOLOGY: A DECADE OF GREAT EXPANSION
Is this correct?
-
AuthorPosts
This topic contains 8 replies, has 2 voices, and was last updated by infinart 9 years, 5 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum