Marcy

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 456 total)
  • Author
    Posts
  • in reply to: Features images on posts and text on blog page #161105

    Marcy
    Participant

    Lee has good advice about deactivating the plugins to see if one of them is conflicting.
    That’s the next step.

    The only other thing that I can suggest is to save your child theme functions.php with another name, and add the Genesis Sample functions.php. Add the code for the image on the posts pages, and then add the functions in your functions.php one at a time.

    I’m not able to troubleshoot your entire theme; you just have to start with what works, and add things gradually until you find what’s causing the problem.


    in reply to: Features images on posts and text on blog page #161082

    Marcy
    Participant

    Can you please activate the Genesis Sample theme and add one of the code sections above to the sample theme functions.php?

    I have tested all the code I have given you, and they all should work.
    Perhaps there is something else in your theme.


    • This reply was modified 18 hours, 40 minutes ago by  Marcy.
    • This reply was modified 18 hours, 40 minutes ago by  Marcy.
    in reply to: Features images on posts and text on blog page #161074

    Marcy
    Participant

    You’re correct; I was on a wrong page.
    There is something that’s interring as you suggested, so it’s a matter of figuring out what priority will work for what you have.

    Try this; it has a higher priority (7) now, so that may be needed.

    add_action( 'genesis_entry_content', 'custom_single_featured_image', 7 );
    function custom_single_featured_image() {
    
        if ( is_singular(array( 'post', 'page' ) ) && has_post_thumbnail() ) {
    
        // Use featured image at kqp-page-image-size for blog
        echo genesis_image( array( 
        	'size' => 'large', 
        	'attr' => array( 
        		'class' => 'aligncenter entry-image' ) ) );
        }
    }

    And if that doesn’t work then try this:

    add_action( 'genesis_entry_header', 'custom_single_featured_image', 7 );
    function custom_single_featured_image() {
    
        if ( is_singular(array( 'post', 'page' ) ) && has_post_thumbnail() ) {
    
        // Use featured image at kqp-page-image-size for blog
        echo genesis_image( array( 
        	'size' => 'large', 
        	'attr' => array( 
        		'class' => 'aligncenter entry-image' ) ) );
        }
    }

    The last one should add the image to the entry header section above the title. That’s probably not where you want it, but I need to see it.


    in reply to: Mobile | Cannot use submenus #161066

    Marcy
    Participant

    If you want to request changes to your product, then you will want to file a support ticket with StudioPress. You can find it in your My StudioPress section – the Help link. http://my.studiopress.com/help/

    I am just a community volunteer, as are most of the people who answer questions here. I don’t work for StudioPress.

    All the best with your request.


    in reply to: Features images on posts and text on blog page #161062

    Marcy
    Participant

    I see images on single posts with the classes from the code above.

    Maybe you need to clear your browser cache to see it yourself?


    in reply to: Adding New Button Class in Parallax #160996

    Marcy
    Participant

    You’re welcome! I’m glad it was what you were looking for.


    in reply to: Mobile | Cannot use submenus #160994

    Marcy
    Participant

    You will just need to make the responsive menu work for larger screens then.

    The regular drop down menu works on hover, not on click or touch; the responsive menu works on click or touch.

    In the default News Pro, the repsonsive menu starts at
    @media only screen and (max-width: 600px) {

    You need to find all the menu css in that section and move it up into the section that is
    @media only screen and (max-width: 1023px) {

    You will also need to keep all the menu lines that are already in the 1023px section.


    • This reply was modified 1 day, 12 hours ago by  Marcy.
    • This reply was modified 1 day, 12 hours ago by  Marcy.
    in reply to: Mobile | Cannot use submenus #160983

    Marcy
    Participant

    The version of News Pro in your StudioPress downloads area has a theme with a menu that should work.

    If you look at the Studio Press Demo in the mobile version, and you click the responsive menu (hamburger) icon, you see items with a + next to them. If you click the +, then the menu will open and drop down, and you should see the sub menu items. If you just click the menu text on the left, you will go to the page.

    You can change the + to be arrows if you like, and you can make them look more like buttons. I have blog posts that show these, if you need them.

    If you need more help, a link to your website is needed to help with this, since it’s specific to your site and not the theme.


    in reply to: Adding New Button Class in Parallax #160978

    Marcy
    Participant

    You would give the new button a class, like new-button.
    You would add it to your blog post or page by switching to the Text input tab and adding:
    <a href="#" class="new-button">My New Button</a>
    You can switch back to Visual tab after.
    # is the link your button takes visitors to.

    Then in style.css you would add the button styles. You can look at what is already there for button in your theme. Here’s a sample. I just made up some fonts and colors.

    .new-button {
        background-color: #ddd;
        color: #333;
        font-family: Roboto, sans-serif;
        font-size: 18px;
        padding: 20px;
        margin: 12px 0;
    }
    
    .new-button:hover {
        background-color: #333;
        color: #fff;
    }

    There are also button plugins that you could look at, but adding it yourself is the easiest.

    I saw you have a button. This is the CSS you have for it, so you can see where to make changes.

    .button {
        background-color: #000;
        border: none;
        color: #fff;
        cursor: pointer;
        font-family: Montserrat, sans-serif;
        font-size: 18px;
        font-weight: 400;
        letter-spacing: 1px;
        padding: 20px;
        text-transform: uppercase;
        -webkit-font-smoothing: antialiased;
    }

    • This reply was modified 1 day, 15 hours ago by  Marcy. Reason: added css
    • This reply was modified 1 day, 15 hours ago by  Marcy. Reason: added css

    Marcy
    Participant

    The entry-content area for full width layout in Modern Studio Pro is 800px. The image size used on that page is 1280px.


    in reply to: Add Logo to Nav Menu in Magazine Pro #160898

    Marcy
    Participant

    Hi,

    This is one way of adding the logo on top of the nav menu.

    https://amethystwebsitedesign.com/add-logo-on-top-of-navigation-menu-in-a-genesis-child-theme/

    There are some suggestions in the comments to keep the logo on the left and the responsive icon on the right.

    If you need more help, once you get started, please include a url to your website.


    in reply to: Move Post Categories Above Post Content #160752

    Marcy
    Participant

    You’re welcome. Glad it worked out.


    in reply to: Features images on posts and text on blog page #160532

    Marcy
    Participant

    Are you saying that the featured images are still not appearing on the single posts?

    The code I posted above always works when I want featured image only on posts.
    When I want it on posts and pages, I use an array, like this:

    add_action( 'genesis_entry_content', 'custom_single_featured_image', 8 );
    function custom_single_featured_image() {
    
        if ( is_singular(array( 'post', 'page' ) ) && has_post_thumbnail() ) {
    
        // Use featured image at kqp-page-image-size for blog
        echo genesis_image( array( 
        	'size' => 'large', 
        	'attr' => array( 
        		'class' => 'aligncenter entry-image' ) ) );
        }
    }

    You can try that instead. If it works for you, and you don’t want featured images on pages, then replace this line with:
    if ( is_singular( 'post' ) && has_post_thumbnail() ) {


    in reply to: Features images on posts and text on blog page #160365

    Marcy
    Participant

    Using this for your blog post image should work:

    add_action( 'genesis_entry_content', 'custom_single_featured_image', 8 );
    function custom_single_featured_image() {
    
        if ( is_single() && has_post_thumbnail() ) {
    
        // Use featured image for blog posts
        echo genesis_image( array( 
        	'size' => 'large', 
        	'attr' => array( 
        		'class' => 'aligncenter entry-image' ) ) );
    
        }
    }

    As for the content on the Blog page, what you’ve done seems correct. I’m pasting the code again in case something is off:.
    Everything below goes in a file named page_blog.php that you place in your child theme folder where you have your functions.php and style.css.

    <?php
    //* Template Name: Blog
    
    //* Show page content above posts
    add_action( 'genesis_loop', 'genesis_standard_loop', 5 );
    
    genesis();

    Then go to the Editor for the page you have named Blog, and add some text to the editor. In the right sidebar, please make sure the under Page Attributes, the Template Blog is selected. Save again and clear any cache you have.

    It should work.


    in reply to: Move Post Categories Above Post Content #160361

    Marcy
    Participant

    Adding these 4 lines to your functions.php will remove the post meta from the entry footer and add it to the entry header just below the post info.

    remove_action( 'genesis_entry_footer', 'genesis_entry_footer_markup_open', 5 );
    remove_action( 'genesis_entry_footer', 'genesis_entry_footer_markup_close', 15 );
    remove_action( 'genesis_entry_footer', 'genesis_post_meta' );
    
    add_action( 'genesis_entry_header', 'genesis_post_meta', 13 );

Viewing 15 posts - 1 through 15 (of 456 total)