Forum Replies Created

Viewing 15 replies - 16 through 30 (of 83 total)
  • Thread Starter mnatseah624

    (@mnatseah624)

    Hello David @diggeddy
    Many thanks. I didn’t see that. Duh.
    D

    • This reply was modified 4 years, 4 months ago by mnatseah624.
    Thread Starter mnatseah624

    (@mnatseah624)

    Thanks @jnashhawkins I will certainly be very careful. Just establishing the procedure at this stage. Apart from that…
    I have three sites that are still visible/working: (1) brightmorningstar.org (main site) (2) christmascantata.brightmorningstar.org; (3) shop.brightmorningstar.org.
    BUT…

    (1) The main site (brightmorningstar.org) is on one database. But in PHPMyAdmin it has three options files, one for each site. But 2_options (shop) and 3_options (christmascantata) have no content. Instead, the content of the two subdomains is in two other databases, as follows:
    (2) christmascantata has its own separate database with only one options file.
    (3) shop has two options files (shop and shop/staging).

    Is this normal? Or should all three sites really be inside the main brightmorningstar database?
    Also, how can I set up my staging site so it backs up the entire multisite and not just one subdomain (shop)?

    • This reply was modified 4 years, 7 months ago by mnatseah624.
    Thread Starter mnatseah624

    (@mnatseah624)

    Thanks @jnashhawkins and @developress
    It took me a while to get my multisite working. The fall-out was three databases/sites that are completely non-functional (one from my old single site and two first-attempt multisites). I have now renamed them (in MySQL Databases) and their absence doesn’t make any difference to my functioning site. They are also taking up 20 MB of space so I think it would be best to get rid of them. I actually can’t delete these through Network Admin, because they don’t appear there. The only possible way I can see to delete them is thru MySQL Databases.
    (Btw I have other issues with my functioning sites, but I’m tackling things slowly, one issue at a time.)
    But why do you both caution so strongly about deleting thru MySQL Databases when I can’t access the redundant sites thru Network Admin?
    Thanks

    Thread Starter mnatseah624

    (@mnatseah624)

    Hello @jnashhawkins I’m getting back sooner than I thought about my multisite. Could you pls give me pointers for a couple of things?
    (1) You say “Post a test message.” I could add a post or a page to one of the sites, but I can’t find my pages and posts. I know they are in the database. But when I go to PHPMyAdmin, I can’t find any way to trace them. Can you pls give me a pointer.
    (2) Should I change the database user name in PHPMyAdmin or in the wp-config file?
    (3) One subdomains is totally unused. If I delete it (via Network Admin) will the delete command completely clean it out of the database and wp-content.

    Thread Starter mnatseah624

    (@mnatseah624)

    Hello @jnashhawkins Thanks very much for your helpful reply. I’ll take a week or two to work thru your suggestions, then I’ll report back.
    Best wishes. Stay well.

    Thread Starter mnatseah624

    (@mnatseah624)

    Dear @leohsiang
    Thanks. I can see the issue is that the comma at the end of
    body.page-id-830 .main-navigation .main-nav ul li[class*="current-menu-"].sfHover > a,
    and just before the blockquote code caused the confusion.
    I’ve replaced it with an empty pair of curly brackets, like this
    body.page-id-830 .main-navigation .main-nav ul li[class*="current-menu-"].sfHover > a {}
    Now it works. Was that the correct solution? Or…?

    • This reply was modified 4 years, 7 months ago by mnatseah624.
    Thread Starter mnatseah624

    (@mnatseah624)

    Hello @leohsiang, I put it in style.css. Works a treat.
    Many thanks

    • This reply was modified 4 years, 7 months ago by mnatseah624.
    Thread Starter mnatseah624

    (@mnatseah624)

    Hello @leohsiang and anyone else who can answer
    So I just made a Generate Press Child, my first child theme. When I activated it, I found it deactivated GP. I also found that it, naturally, appeared without all the additional CSS code which I had added. May I just ask….
    Is this how it’s supposed to work? Should GP Child now be the only activated theme? And should I add my CSS code there?
    A yes or no will do.
    Many thanks

    Thread Starter mnatseah624

    (@mnatseah624)

    Hello @leohsiang
    Thanks very much for your advice.
    Happy Easter to you.

    Thread Starter mnatseah624

    (@mnatseah624)

    Hello Leo
    I didn’t have a child theme. I just inserted it straight into functions.php.
    Is a child theme the best way to do it?
    I tried it with Code Snippets, but it’s not working there.
    Btw this was the code…

    function wpb_latest_sticky() { 
     
    /* Get all sticky posts */
    $sticky = get_option( 'sticky_posts' );
     
    /* Sort the stickies with the newest ones at the top */
    rsort( $sticky );
     
    /* Get the 5 newest stickies (change 5 for a different number) */
    $sticky = array_slice( $sticky, 0, 5 );
     
    /* Query sticky posts */
    $the_query = new WP_Query( array( 'post__in' => $sticky, 'ignore_sticky_posts' => 1 ) );
    // The Loop
    if ( $the_query->have_posts() ) {
        $return .= '<ul>';
        while ( $the_query->have_posts() ) {
            $the_query->the_post();
            $return .= '<li><a href="' .get_permalink(). '" title="'  . get_the_title() . '">' . get_the_title() . '</a><br />' . get_the_excerpt(). '</li>';
             
        }
        $return .= '</ul>';
         
    } else {
        // no posts found
    }
    /* Restore original Post Data */
    wp_reset_postdata();
     
    return $return; 
     
    } 
    add_shortcode('latest_stickies', 'wpb_latest_sticky');
    add_filter('widget_text', 'do_shortcode');
    • This reply was modified 4 years, 7 months ago by mnatseah624.
    Thread Starter mnatseah624

    (@mnatseah624)

    Dear Tom @edge22
    Thank you very much. I’ve just one little remaining problem. When I mouseover on, say, Blog, then hover over the dropdown list, Blog becomes black and illegible.
    Might you have another line of code for that?
    Hopefully…

    Thread Starter mnatseah624

    (@mnatseah624)

    Dear Tom (@edge22)
    Many thanks indeed. That works fine. Just one more question, pls.
    The active page tab is still black with black text. How can I change the colors of the tab and the text?

    • This reply was modified 4 years, 9 months ago by mnatseah624.
    Thread Starter mnatseah624

    (@mnatseah624)

    Thanks for the explanation @diggeddy

    Thread Starter mnatseah624

    (@mnatseah624)

    OK. I didn’t realize that space was important.
    I live and learn. ??
    Thanks and God bless

    Thread Starter mnatseah624

    (@mnatseah624)

    Dear @diggeddy
    Many many thanks. That works well. And the !important tag has solved several of my issues.
    May I beg of you one more thing, pls?…
    I can’t change the color of the black header
    This is the code I’m trying

    body.page-id-830.site-header {
        background-color: #fff !important;
    }

    Any ideas?

Viewing 15 replies - 16 through 30 (of 83 total)