• Resolved seraphki

    (@seraphki)


    So, I really like how Supreme Directory looks as far as the map pages and place categories are concerned, but I’m trying to build a site where the directory isn’t the main focus, so I want to strip out the default front page featured section (with the search area and links to place categories) and also tone down the forced formatting for regular page content.

    I’m not super savvy with wordpress, so while I hunt around for the code in the editor, I figured I’d drop a line here and hope for a quick answer. =]

    Thanks a bunch!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Theme Author Paolo

    (@paoltaia)

    Hi,

    the featured area in home you can hide it with CSS.

    .sd.home .featured-area {
        display: none;
    }

    You’ll need to assign a background color to the header cause in home it is transparent:

    .sd-homepage .site-header, .sd.sd-location .site-header {
        background-color: #2f2f2f;
    }

    Add both in GD > Design > Scripts > Custom CSS.

    I’m not sure I understand what you mean by: tone down the forced formatting for regular page content

    If you explain I’ll be glad to assist.

    Thanks

    Thread Starter seraphki

    (@seraphki)

    Thanks! My css is a little shoddy (mostly work in C#) so a lot of this stuff makes me feel a little exasperated. For regular pages it seems like the only “forced” formatting (used for lack of a better term) is the large top with the title – all I’d really want I suppose is to shrink it a little bit, so it takes up less of the page.

    Thanks for your rapid response =D

    Thread Starter seraphki

    (@seraphki)

    So far the closest I’ve come with the front page to get what I want is to go through functions.php and geodirectory-compatibility.php and strip out all if statements concerning is_front_page() so that the front page looks like the rest of the pages

    • This reply was modified 8 years ago by seraphki.
    Theme Author Paolo

    (@paoltaia)

    Hi,

    1) I suggested to go the CSS way to avoid losing all your changes after every theme update.

    2) Again this should be done with CSS:

    .page-template-page_full-width .entry-content {
        max-width: 800px;
    }

    You can change the 800px value as you prefer.

    Thanks

    Thread Starter seraphki

    (@seraphki)

    Thanks! This is all really helpful, and good to know that the custom CSS doesn’t clear with updates. It wasn’t the entry width I was concerned about, it was the featured area height – where there is the big image that has the big title within it. But with your above example I can probably sort out which element I need to override.

    Though, is there a way for me to use the css to not hide the featured area, but to instead have it use the default featured area on the front page (like on any other page) instead of the custom is_front_page() stuff? So far I can only find to do this by stripping that if statement in CSS, and you’re right, doing that would mean losing it every time I do updates, so I’d rather not.

    Sorry to be a bother about this, and thanks again for your help. I feel like I’m slowly getting the hang of it.

    Theme Author Paolo

    (@paoltaia)

    Hi,

    Here you find more tips about modifying CSS: https://wpgeodirectory.com/docs/customizing-your-style/

    CSS can only be used to modify style. You can’t take the featured area of the home page and show it in all pages with CSS. PHP would be required for that.

    With custom code everything can be done, however customization are beyond support.

    Thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Stripping Non-Map Formatting’ is closed to new replies.