Tagged: blog layout
-
AuthorPosts
-
September 21, 2015 at 4:59 pm #506527
I have blog set to grid view, and until recently it worked, but no more. Any custom CS for this?
http://www.Waterstone-Realty.com/blogAlso, my CSS sheet is getting pretty full. I use a child theme for my templates. Where should I place the my custom CSS in the style sheet? When I place it below
/*Add your own styles here:*/
Nothing happens.September 21, 2015 at 5:49 pm #506565Hey WSRJohn!
It looks like your using some kind of plugin for that, IDX? It seems to be outputting it’s own markup so the Enfold styles are not going to work with it.
For your child theme stylesheet you may need to use the !important override to make sure your CSS gets applied. i.e.
a { color: red !important; }
Cheers!
ElliottSeptember 21, 2015 at 6:03 pm #506578How can I override that with CSS?
I removed the most recent posts that have idx templates and didn’t fix it.
September 21, 2015 at 6:21 pm #506592Hi!
It’s not really a CSS issue. Whatever your using there it’s displaying it’s own HTML so it’s not going to pick up the Enfold styling. You could try and add your own styling but I imagine that would take quite a bit of work.
I’m not sure if it will work but you could also try creating a new page and then insert the blog grid element to the page content and have it display posts from a custom taxonomy and then select your property categories.
Regards,
ElliottSeptember 21, 2015 at 6:45 pm #506610I see what you are saying. How can I override the style sheet with the default stylesheet. When I change he blog style to “Use advanced Layer editor” it does change. So it seems to me Avia Still has control. Unfortunately it won’t show Gris Layout for Blog. Grid Layout was one of the main reasons I chose this template. It has to be something with Enfold theme.
Note, I do have a template names idx.php. But removing still give me same problems.
- This reply was modified 9 years, 3 months ago by WSRJohn.
September 21, 2015 at 8:29 pm #506655Wow that sucks. something in my custom home.php messed it all up. Not Sure what, but yikes. If you know what it was would appreciate the head up or maybe this will help someone else.
<?php
/*
Template Name: HOME
*/
global $avia_config;/*
* get_header is a basic wordpress function, used to retrieve the header.php file in your theme directory.
*/
get_header();if( get_post_meta(get_the_ID(), ‘header’, false) != ‘no’) echo avia_title();
?><div class=’container_wrap container_wrap_first main_color <?php avia_layout_class( ‘main’ ); ?>’>
<div class=’container’>
<?php if ( !function_exists(‘dynamic_sidebar’) || !dynamic_sidebar(‘slider’) ) : ?>
<?php endif; ?>
<?php if ( !function_exists(‘dynamic_sidebar’) || !dynamic_sidebar(‘property-search’) ) : ?>
<?php endif; ?><main class=’template-page content <?php avia_layout_class( ‘content’ ); ?> units’ <?php avia_markup_helper(array(‘context’ => ‘content’,’post_type’=>’post’));?>>
<?php
/* Run the loop to output the posts.
* If you want to overload this in a child theme then include a file
* called loop-page.php and that will be used instead.
*/$avia_config[‘size’] = avia_layout_class( ‘main’ , false) == ‘entry_without_sidebar’ ? ” : ‘entry_without_sidebar’;
get_template_part( ‘includes/loop’, ‘page’ );
?><!–end content–>
</main></div><!–end container–>
</div><!– close default .container_wrap element –>
<?php get_footer(); ?>
September 21, 2015 at 8:54 pm #506675Alright, abusing this some. But if I wanted to uses this template with NO sidebar on right or left, what will I have to remove?
Reason being, I have a plug in that does not let you custom editor work at ALL. So I have to create a custom CSS template similar to yours but remove the possibility of a sidebar next to the container.
September 22, 2015 at 3:48 pm #507147Hi!
Try this.
aside { display: none !important; } main { width: 100% !important; max-width: 100% !important; border: 0px !important; }
Cheers!
ElliottSeptember 22, 2015 at 11:19 pm #507413Beautiful! Now can you help get rid of the white header above the picture? Promise I’ll leave you alone after this. The slider and property search are part of custom theme. So moving Main -95 or whatever won’t fix the problem. Below is the theme .idx.php
Thanks EVER So much!
<?php
/*
Template Name: IDX
*/
global $avia_config;/*
* get_header is a basic wordpress function, used to retrieve the header.php file in your theme directory.
*/
get_header();if( get_post_meta(get_the_ID(), ‘header’, true) != ‘no’) echo avia_title();
do_action( ‘ava_after_main_title’ );
?><div class=’container_wrap container_wrap_first main_color <?php avia_layout_class( ‘default’ ); ?>’>
<div class=’container’>
<?php if ( !function_exists(‘dynamic_sidebar’) || !dynamic_sidebar(‘slider’) ) : ?>
<?php endif; ?>
<?php if ( !function_exists(‘dynamic_sidebar’) || !dynamic_sidebar(‘property-search’) ) : ?>
<?php endif; ?><main class=’template-page content <?php avia_layout_class( ‘content’ ); ?> units’ <?php avia_markup_helper(array(‘context’ =>
‘content’,’post_type’=>’page’));?>>
<?php
/* Run the loop to output the posts.
* If you want to overload this in a child theme then include a file
* called loop-page.php and that will be used instead.
*/$avia_config[‘size’] = avia_layout_class( ‘main’ , false) == ‘entry_without_sidebar’ ? ” : ‘entry_with_sidebar’;
get_template_part( ‘includes/loop’, ‘page’ );
?><!–end content–>
</main><?php
//get the sidebar
$avia_config[‘currently_viewing’] = ‘page’;
get_sidebar();?>
</div><!–end container–>
</div><!– close default .container_wrap element –>
<?php get_footer(); ?>
September 22, 2015 at 11:28 pm #507417May need one more thing after, throw it out there now. I need to overwrite the home page in AVIA with a page- id. The page I want is not an option in drop down box .That’ should be it though, I promise… =)
September 23, 2015 at 2:36 pm #507808Hi!
are you talking about this picture?
http://waterstone.waterstonerealty.netdna-cdn.com/wp-content/uploads/2015/09/0-full1-495×400.jpgBecause as you can see it has white borders naturally. Upload a new version of this picture without any white borders.
If you need to use page-id have a look at this: https://en.support.wordpress.com/pages/#how-to-find-the-page-id
Best regards,
AndySeptember 23, 2015 at 3:01 pm #507841Sorry wasnt clear enough.
I want to make http://www.Waterstone-Realty.com/idx/listings/home my home page. I need it to look and act like my current home page at http://www.Waterstone-Realty.com. so i need to remove the white header space above picture AND i need to manually override it as home page because /idx/listings/home is not available as a drop down box in enfold theme or wordpress geral settings.
September 24, 2015 at 2:28 pm #508466Hey!
you are using this code:
.html_header_top.html_header_topbar_active.html_header_sticky #top #main { padding: 119px; }
Replace it with this instead:
.html_header_top.html_header_topbar_active.html_header_sticky #top #main { padding: 0px; }
to remove white space above you main content.
Go to Enfold->Theme Options->Frontpage settings and choose you page in question as homepage (frontpage).
Best regards,
AndySeptember 24, 2015 at 2:33 pm #508470Go to Enfold->Theme Options->Frontpage settings and choose you page in question as homepage (frontpage).
This does not work as I explained, it is not an option. Need to override Enfolds frontpage setting based on page id which i s4994
September 24, 2015 at 2:39 pm #508474and no dice on the no header using
.page-id-4994.html_header_top.html_header_topbar_active.html_header_sticky #top #main {
padding: 0px !important;
}September 24, 2015 at 3:00 pm #508488Please see custom.php above to get rid of white space recommendations aren’t working. Please help, been working on this for 10 days now,
September 25, 2015 at 11:14 pm #509301Hey!
not sure what you mean, why is it no option in your frontpage settings? Can you provide us admin access? so we can see what’s going on? post login details here as private reply.
Regards,
Andy -
AuthorPosts
- You must be logged in to reply to this topic.