Jump to content
Sign in to follow this  
jmcollett

Feature requests for Boxes.

Recommended Posts

jmcollett

Hi Guys, I have two requests that would make my life (and possibly others too!) a little easier please: 1. Would it be possible to include a feature that 'centres' the header that appears with a box? 2. Can we please have the open in new tab/page on the URL linking feature fro boxes? I can do the first one using html code, but this shows whenever you hover over the box picture (Yuk!!) There appears to be no facility to implement code on the URL line of the box link? Cheers, Martin PS: I requested an update to the boxes code several months ago when engaging an issue via Adam. Since then there have been a couple of updates and I am having to manually correct this each time. I was lead to believe the code update was an acceptable modification! As such, I have included the required change again for review: The file that requires change is: themes/platformpro/sections/boxes/section.boxes.php

<?php echo do_shortcode($bpost->post_content); ?><?php edit_post_link(__('[Edit Box]', 'pagelines'), '
', '', $bpost->ID);?>
The above line was changed to
<?php the_content($bpost->post_content); ?><?php edit_post_link(__('[Edit Box]', 'pagelines'), '
', '', $bpost->ID);?>
The reason the first line didn't work is because, Pageline shortcodes arent using wordpress' shortcode API.

Share this post


Link to post
Share on other sites
Kate

Hi Martin, You can use CSS to center the header. If you provide a link to your site, we can help you out with that. As for the second: you can add a feature like this with jQuery quite easily. ;)

Share this post


Link to post
Share on other sites
jmcollett

Hi Kate, the website is live.pib.net.au As for QJery, unfortunately I am not familiar with this tool and would need some guidance. Ca you please direct me towards some learning material?n

Share this post


Link to post
Share on other sites
Kate

Hello, For the first item: it appears you got the text centered. Alternatively, you could just use a CSS class to apply it to all box titles:

.fboxtitle{text-align:center;}

For the jQuery: Here's some info: http://befused.com/jquery/open-link-new-window jQuery is already loaded as part of the theme, so you won't need to call any JavaScript files ;)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×