Tagged: 

Viewing 17 posts - 1 through 17 (of 17 total)
  • Author
    Posts
  • #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/blog

    Also, 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.

    #506565

    Hey 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!
    Elliott

    #506578

    How can I override that with CSS?

    I removed the most recent posts that have idx templates and didn’t fix it.

    #506592

    Hi!

    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,
    Elliott

    #506610

    I 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.
    #506655

    Wow 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(); ?>

    #506675

    Alright, 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.

    #507147

    Hi!

    Try this.

    aside { display: none !important; }
    main { width: 100% !important; max-width: 100% !important; border: 0px !important; }
    

    Cheers!
    Elliott

    #507413

    Beautiful! 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(); ?>

    #507417

    May 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… =)

    #507808

    Hi!

    are you talking about this picture?
    http://waterstone.waterstonerealty.netdna-cdn.com/wp-content/uploads/2015/09/0-full1-495×400.jpg

    Because 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,
    Andy

    #507841

    Sorry 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.

    #508466

    Hey!

    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,
    Andy

    #508470

    Go 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

    #508474

    and 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;
    }

    http://www.waterstone-realty.com/idx/listings/home/

    #508488

    Please see custom.php above to get rid of white space recommendations aren’t working. Please help, been working on this for 10 days now,

    #509301

    Hey!

    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

Viewing 17 posts - 1 through 17 (of 17 total)
  • You must be logged in to reply to this topic.