Forum Replies Created
-
AuthorPosts
-
saxismeMember
Hello @hampi52,
Thanks!
It's made on AgentPress Pro and customized AgentPress Listings plugin.March 20, 2016 at 6:14 pm in reply to: When A Client Wants All The Bells & Whistles – What A Launch #181945saxismeMemberHello,
I agree, but in these cases I tell the client not to guess and make decisions based on facts: have a look at the traffic from mobile/desktop in Google Analytics.
Nice work
saxismeMemberHi Scottwachter,
Having a look at your site looks like the problem is the menu itself:
Thenav-primary
is covering thetitle-area
If you try to set the width ofnav-rpimary
to 50% and float it left you will see what I mean.I think you have to play around with widths and floats to fix it
Cheers
April 4, 2015 at 10:08 am in reply to: How to creare an additional front-page-8 in Altitude Pro? #146656saxismeMemberYou're welcome 😉
You can mark the topic as solved - as reference for othersBye,
saxismeMemberHi brandanchor,
You can change the order in the
front-page.php
by just reordering this part:genesis_widget_area( 'front-page-1', array( 'before' => '<div id="front-page-1" class="front-page-1"><div class="image-section"><div class="flexible-widgets widget-area' . altitude_widget_area_class( 'front-page-1' ) . '"><div class="wrap">', 'after' => '</div></div></div></div>', ) ); genesis_widget_area( 'front-page-2', array( 'before' => '<div id="front-page-2" class="front-page-2"><div class="solid-section"><div class="flexible-widgets widget-area' . altitude_widget_area_class( 'front-page-2' ) . '"><div class="wrap">', 'after' => '</div></div></div></div>', ) ); genesis_widget_area( 'front-page-3', array( 'before' => '<div id="front-page-3" class="front-page-3"><div class="image-section"><div class="flexible-widgets widget-area' . altitude_widget_area_class( 'front-page-3' ) . '"><div class="wrap">', 'after' => '</div></div></div></div>', ) ); genesis_widget_area( 'front-page-4', array( 'before' => '<div id="front-page-4" class="front-page-4"><div class="solid-section"><div class="flexible-widgets widget-area' . altitude_widget_area_class( 'front-page-4' ) . '"><div class="wrap">', 'after' => '</div></div></div></div>', ) ); genesis_widget_area( 'front-page-5', array( 'before' => '<div id="front-page-5" class="front-page-5"><div class="image-section"><div class="flexible-widgets widget-area' . altitude_widget_area_class( 'front-page-5' ) . '"><div class="wrap">', 'after' => '</div></div></div></div>', ) ); genesis_widget_area( 'front-page-6', array( 'before' => '<div id="front-page-6" class="front-page-6"><div class="solid-section"><div class="flexible-widgets widget-area' . altitude_widget_area_class( 'front-page-6' ) . '"><div class="wrap">', 'after' => '</div></div></div></div>', ) ); genesis_widget_area( 'front-page-7', array( 'before' => '<div id="front-page-7" class="front-page-7"><div class="image-section"><div class="flexible-widgets widget-area' . altitude_widget_area_class( 'front-page-7' ) . '"><div class="wrap">', 'after' => '</div></div></div></div>', ) );
Just cut/paste the widget area code you'd like to move.
Bye
April 3, 2015 at 8:54 am in reply to: How to creare an additional front-page-8 in Altitude Pro? #146549saxismeMemberHello PassionVente,
You would have to add in
functions.php
genesis_register_sidebar( array( 'id' => 'front-page-8', 'name' => __( 'Front Page 8', 'altitude' ), 'description' => __( 'This is the front page 8 section.', 'altitude' ), ) );
around line 244 - you will see all the widget areas from 1 to 7.
And in
front-page.php
addgenesis_widget_area( 'front-page-8', array( 'before' => '<div id="front-page-8" class="front-page-8"><div class="image-section"><div class="flexible-widgets widget-area' . altitude_widget_area_class( 'front-page-8' ) . '"><div class="wrap">', 'after' => '</div></div></div></div>', ) );
in the
function altitude_front_page_widgets()
.
Here you can add/change the classes you need or remove the image-section divBye,
saxismeMemberHi Gael,
You could use the function (http://codex.wordpress.org/Function_Reference/is_user_logged_in) in the
archive-listing.php
page, something like this in line 60:if ( is_user_logged_in() ) { if( $address ) { $loop .= sprintf( '<span class="listing-address">%s</span>', $address ); } }
saxismeMemberOk,
Thanks Braddalton.
saxismeMemberHi Braddalton,
Thanks for the reply.
I am referring to the widgets in the Apperance/Widget screen.
For example I have in this order:
1 Header Right
2 Primary Sidebar
3 Secondary Sidebar
4-7 Footer Widget
8 and on - My widgets created with Simple Sidebar. These are the ones I'd like to reorder after I have created them.Thanks,
saxismeMemberHi,
I like the "minimalistic" approach of your site.
Since there is always space to improve 😉 these are my suggestions:
- Give more space to the banner images, especially in the homepage, it's a nice pic but it's almost half cut out
- In the banner, choose only high res images (http://www.montasje.as/enebolig-floro)
- You have such interesting installations, use more details of your case history, make videos and interviews to clients
- In the homepage I would put less opacity in the title boxes over the imagesNice site!
saxismeMemberHi SimplyMeBrittany,
You could use this function from Bill Erickson
<?php /** * Customize Read More Link * @author Bill Erickson * @link http://www.billerickson.net/read-more-link * * @param string * @return string */ function be_more_link($more_link) { return sprintf('<p><a href="%s" class="more-link">%s</a></span></p>', get_permalink(), 'View Full Video'); } add_filter( 'excerpt_more', 'be_more_link' ); add_filter( 'get_the_content_more_link', 'be_more_link' ); add_filter( 'the_content_more_link', 'be_more_link' );
Using also WordPress conditional tags depending if your content is a Custom Post Type or a Category.
If is a CPT and if you are in the CPT archive page an example could be:
`if ( is_post_type_archive ( array( 'video-post-type-name-here' ) ) {
...above code here...
}Hope it helps.
saxismeMemberHi @aaronc,
I've found the solution thanks to Sridhar Katakam:
add_filter( 'genesis_attr_site-inner', 'custom_attributes_content' ); function custom_attributes_content( $attributes ) { if ( is_page() || is_front_page() ) { //I need it only for this type of content $attributes['id'] = 'site-inner'; } return $attributes; }
Cheers!
saxismeMemberHi @aaronc,
did you managed to solve it?
I am in the same situation.I've found this piece of code
add_action( 'genesis_setup', 'srf_add_cust_classes', 15 ); // Priority 15 ensures it runs after Genesis itself has setup. function srf_add_cust_classes() { add_filter( 'genesis_attr_site-inner', 'srf_attr_site_inner' ); } function srf_add_class( $attr, $class ) { $attr['class'] .= ' ' . sanitize_html_class( $class ); return $attr; } function srf_attr_site_inner( $attr ) { return srf_add_class( $attr, 'example-class-1' ); }
here but can't make it work.
Thanks.
June 6, 2014 at 1:38 pm in reply to: Simple Sidebar as Secondary Sidebar – How to display it #108368saxismeMemberOk, I have resolved using a custom field with the slug name of the sidebar created with Simple Sidebar and inserting it via this code in functions.php where
wpcf-widget-after-content
is the name of the custom field used./** * Insert custom sidebar created with Simple Sidebar plugin: use as widegtized area after the content * * @author Sacha Benda */ add_action( 'genesis_after_content', 'sax_secondary_sidebar' ); function sax_secondary_sidebar() { $sidebar = get_post_meta( get_the_ID(), 'wpcf-widget-after-content', true); if ( is_active_sidebar ( $sidebar ) ) { echo '<div class="clearfix"></div><aside class="after-content widget-area"><div class="wrap">'; dynamic_sidebar($sidebar); echo '</div></aside>'; } }
Thanks,
June 6, 2014 at 1:09 pm in reply to: Simple Sidebar as Secondary Sidebar – How to display it #108364saxismeMemberHmmm...
i don't know, surely I will have some widgets, but I find this logic the same as Studio Press uses: use widgets to create a layout.
I don't think a will have a huge amount of widgets, this is an example:
- Homepage - SS Widget Area for: Text Widget A (call to action) + Featured Posts + Genesis Responsive Slider
- About Us - SS Widget Area for: Text Widget B (call to action) + Text Widget C (download brochure) + Genesis Responsive Slider
- Mission - Text Widget B (call to action) + Genesis Responsive Slider
...and so on.And use the SS feature to assign a sidebar to a category for post pages with the same concept above.
I think at the end I would have around 7/10 widget areas + the default Genesis ones.If the client tomorrow wants to add another CTA or change the text, he just changes the widgets in that widget area.
Do you think this schema is not efficient?Thanks,
June 6, 2014 at 12:55 pm in reply to: Simple Sidebar as Secondary Sidebar – How to display it #108359saxismeMemberHi @braddalton,
yes, that's why I ended up with that code.
Yes, mostly unique content.The logic behind a widgetized area is what I need - drag and drop, and the flexibility of widgets - otherwise I would have to make a lot of shortcodes...
I cannot think of how I could implement the use of custom fields in this scenario.
Thanks,
June 6, 2014 at 8:10 am in reply to: Simple Sidebar as Secondary Sidebar – How to display it #108308saxismeMemberHello @braddalton,
Thanks for the reply.
I understand I made a mix of things 😉 This is what I am trying to achieve:
- I want to use a widget area to display some content beneath the main content area
- The content is on per page/category base - this is why Simple Sidebars is envolved. I cannot hard code the sidebar to the page since I don't know its name/ID
- I am using the Sidebar Selection Menu to assign the widget area created with SS, so I wrote the function above to force-display it taking advantage of the Secondary Sidebar option.Of course the problem appears when I don't assign any secondary sidebar, and so the default message empty-widget area pops in. This is what I am trying to avoid.
I made up the code from what I've found in Studio Press and looking at the core files (and playing around a bit).
So the question could be: is there a way to assign a Widget Area created with SS in a Page without hardcoding it?
A custom field on the page with the name of the sidebar I create? Something more end-user-friendly?A big thanks again
-
AuthorPosts