Forum Replies Created

Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter hazelstreet

    (@hazelstreet)

    I’m late in getting back to this, but wanted to let you know that I was indeed able to play around with the static front page Settings and get what I needed. Thanks for the tip!

    Thread Starter hazelstreet

    (@hazelstreet)

    That worked like a charm, thank you very much! I really appreciate your quick help!

    Thread Starter hazelstreet

    (@hazelstreet)

    Thanks so much for the replies!

    José,
    I haven’t intentionally changed any div classes that I know of. Are you looking in the style.css file? If so, would you be able to tell me what line the code is that I have to change to grid-33?

    I tried editing a couple of different lines of code in style.css, but they haven’t fixed the problem (in fact, they just made the first two posts stretch the whole width of the page, and kept the 3rd down on the second line).

    So I went back and downloaded a fresh style.css from the theme page and replaced it on the server to make sure there aren’t any stray edits that I made, and it is back to pushing the third post onto the second line like before.

    If you could tell me which line I should be editing, then I won’t mess up the rest (my hosting provider takes a long time to refresh so it’s hard for me to see changes right away sometimes).

    Or is there another location/another file I should be changing this in?

    Again, thanks so much for your help, José, I really appreciate it!

    Thanks so much, worked perfectly!

    Hi, I am trying to set up this exact thing (let my editors create new guest authors). I’ve found the filter you mention in the class-coauthors-guest-authors.php file:

    // Allow users to change the required cap for modifying guest authors
    		$this->list_guest_authors_cap = apply_filters( 'coauthors_guest_author_manage_cap', $this->list_guest_authors_cap );

    But I’m afraid I’m not very php literate. Where do I put this code? In my WP capabilities.php file somewhere? Someplace else? Do I have to add more to it to define it specifically for the Editor role?

    Sorry, I’m just a little lost. Thanks for any help!

    Thread Starter hazelstreet

    (@hazelstreet)

    OK, thank you!

    Thread Starter hazelstreet

    (@hazelstreet)

    AH, that was it, thank you!

    I see now that I have to set the max width, the slideshows no longer adjust their size with the width of the browser (I’m using a theme that adjusts accordingly). Is there any way to bring that functionality back while keeping them side-by-side?

    If not, I guess I’ll have to live with this, but wanted to check. Thanks again!

    Thread Starter hazelstreet

    (@hazelstreet)

    Err, when I said “you’ll see ‘Administrator’ listed as the post authors…” above, I was wrong — what you’ll see is a working Co-Authors Plus, just with the default byline (which I would like to edit… so then I created the custom byline, and Co-Authors Plus broke, which started this whole thread). I removed the offending child theme functions.php file, which has removed both the custom byline and Daniel’s suggested fix.

    I would edit the above post, but it doesn’t seem to allow me to… just wanted to clarify in case that point confused anyone trying to figure out the problem. Thanks!

    Thread Starter hazelstreet

    (@hazelstreet)

    P.S. I’ve removed the offending child theme functions.php file from the site until this is resolved so that I can get back into the dashboard — so if you visit it, you’ll see “Administrator” listed as the post authors, since Co-Authors Plus isn’t currently working without the functions fix.

    Thread Starter hazelstreet

    (@hazelstreet)

    Hi again — I am picking this project back up after a hiatus.

    Your suggested fix worked great in terms of it appearing as it should on the public side… but the new code in my child functions.php file locked me out of the WP dashboard/controls (when I try to log in, I enter the login info, and then I just get a blank white screen and nothing else).

    Is it possible that this could be a syntax issue, or something else that I could tweak in the functions file to both get it running, and let me log into the site?

    I’ll copy my child theme functions.php file here again (the version that broke the WP login).

    Thank you for any help!!
    The work-in-progress site in question: https://midwayjournal.com/test/

    Child theme functions.php file:

    <?php
    
    add_action( 'after_setup_theme', 'midwayjournal_setup', 11 );
    
    function midwayjournal_setup() {
    
    	/* Get the parent theme prefix. */
    	$prefix = hybrid_get_prefix();
    
    	/* Actions and filters calls go here in the future. */
    	add_filter( "{$prefix}_byline", 'midwayjournal_byline' );
    
    }
    
    /**
     * Function to output the author byline but no date.
     *
     */
    
    function midwayjournal_byline( $byline ) {
    
    	if ( 'post' === get_post_type() )
    		$byline = '<div class="byline">by ' . coauthors_posts_links( null, null, null, null, false ) . '</div>';
    
    	return $byline;
    }
    
    ?>
    Thread Starter hazelstreet

    (@hazelstreet)

    Thank you very much! This did the trick.

Viewing 11 replies - 1 through 11 (of 11 total)