Forum Replies Created

Viewing 15 replies - 76 through 90 (of 105 total)
  • Kyle Maurer

    (@brashrebel)

    You can change
    #f78993
    to
    rgba(247, 137, 147, 0.6)

    To adjust the level of transparency just adjust the last number. In this example I used 0.6 which would be 60% transparency.

    Kyle Maurer

    (@brashrebel)

    Try adding this to your custom.css file.

    .featured article header {
    background: #f78993 url("../images/bg-overlay-texture.png") repeat left top;
    }

    I think that is what you are looking for.

    Kyle Maurer

    (@brashrebel)

    Best way to remove it: find the option in your theme settings (if it exists)
    Acceptable way: edit footer.php in your child theme and remove the code.
    Bad way (that I really don’t recommend this but here you go): add this to your CSS:

    #footer .creds {
    display: none;
    }

    Kyle Maurer

    (@brashrebel)

    If you login (FTP or whatever method you like) to your server and temporarily remove the new theme from the wp-content/themes directory and then visit the site it should revert back to the default theme.

    Forum: Fixing WordPress
    In reply to: Cannot login
    Kyle Maurer

    (@brashrebel)

    Can you elaborate a little? What do you mean he can’t get it to work? Will the site load at all? Can he access the front end?

    Kyle Maurer

    (@brashrebel)

    Mind sharing a link? This shouldn’t be too tricky.

    That should just be a matter of your permalink settings for the individual sites. Settings- – >Permalinks. You’re indicating the “post name” structure, I believe.

    classified.abc.com/ but Its no display anything on front end,How I check whether Its subdomain or sub-directory,I forget which mode I selected

    It appears you have a subdomain configuration. Otherwise it would be abc.com/classified.

    As for it not showing anything on the front end…first off, does that mean it DOES show something on the back end? If that is the case then you have either a theme or plugin problem. If neither the front end or back end of the sub site are accessible than my first guess would be that you do not have wildcard subdomains configured in your host.

    To setup wildcard subdomains you just need to go into your hosting account and add a subdomain that has * as its value and points to the same directory as your WordPress installation. This should do it as long as your host allows wildcard subdomains.

    also My users are not showing in classified.abc.com, It only shows my account ,I want to use same users for all

    Users are not automatically added to each subsite by default. You would normally have to manually add them by either editing the site within the network dashboard on the Users tab or by going to the dashboard of the subsite as an administrator and using the “Add existing user” option on Add New under users.

    There are also plugins that can help with this. Join my multisite is pretty cool and has an auto add option. Multisite user management is also very useful for this kind of thing.

    My first step would be pulling plugins out of the plugins directory one at a time, especially ones activated on the main site and any mu-plugins. Then I’d ditch the active theme. This typically reveals to me what is causing the problem.

    I can’t imagine the WordPress update causing the actual problem (unless you have modified your installation), rather it is likely that your plugins or themes are incompatible somehow and THEY require some updates.

    Everything will automatically work from the same database that is defined in your wp-config.php file. The new sites you create from the Network dashboard will simply generate new tables in your database, incorporating their site ID in the table prefix i.e. wp_12_postmeta for the site with the ID 12.

    Your subsites will work automatically when you create them. If they don’t there is likely another issue and not the DB. Are you using subdirectories or subdomains? If its subdomains then make sure you have wildcard subdomains configured for your main domain.

    Learned a little more about the issue today. In the database, the users had no role defined for the given site. In my case this occurred when I used some import plugin which brought users from another install and was supposed to assign them either the same roles or the default role (can’t remember). Anyway, it associated them with the site but gave them no role.

    We were able to run a script that set all the user’s roles to subscriber and then they appeared in the list as they were supposed to.

    I have experienced this as well. I go to Users for a site (in the site dashboard or more often in the Network->Sites->Edit->Users TAB) and see the correct NUMBER of users but no actual list.

    I’ve seen it on multiple multisite installs that had very little in common.

    Thread Starter Kyle Maurer

    (@brashrebel)

    Well then maybe I’ll have to take the lead on making it happen. This well be interesting.

    I’m very open to suggestions.

    Forum: Networking WordPress
    In reply to: Site Issues

    Do you mind sharing a link for us to look at? The main site and a sub-site would be great.

    Also, what is in your current .htaccess file? Are you using subdomains or subdirectories for this multisite setup?

    Thread Starter Kyle Maurer

    (@brashrebel)

    Here is the full code right now. Kind of messy I know:

    $attachments = get_posts( array(
    			'post_type' => 'attachment',
    			'posts_per_page' => -1,
    			'meta_key'         => '_kjm_is_service',
    			'meta_value'       => '1'
    		) );
    		            if ( $attachments ) {
    			foreach ( $attachments as $attachment ) {
    
    			$kjm_alt = get_post_meta($attachment->ID, '_wp_attachment_image_alt', true);
    			$kjm_image_title = $attachment->post_title;
    			$kjm_url = wp_get_attachment_url( $attachment->ID , false );
    			}
    			}
    
    $meta_box['service'] = array(
        'id' => 'service-details',
        'title' => 'Service Details',
        'context' => 'normal',
        'priority' => 'high',
        'fields' => array(
            array(
                'name' => 'background-image',
                'desc' => 'bla bla bla',
                'id' => 'service-bg',
                'type' => 'radio',
    	'options' => array(
                    array('name' => 'Name 1', 'value' => 'Value 1'),
                    array('name' => 'Name 2', 'value' => 'Value 2'),
                    array('name' => $kjm_url, 'value' => $kjm_url)
                )
            )
        )
    );
    
    add_action('admin_menu', 'kjm_add_box');
    
    //Add meta boxes to post types
    function kjm_add_box() {
        global $meta_box;
    
        foreach($meta_box as $post_type => $value) {
            add_meta_box($value['id'], $value['title'], 'kjm_format_box', $post_type, $value['context'], $value['priority']);
        }
    }
    
    //Format meta boxes
    function kjm_format_box() {
      global $meta_box, $post;
      //print_r(array_values($meta_box));
      // Use nonce for verification
      echo '<input type="hidden" name="kjm_meta_box_nonce" value="', wp_create_nonce(basename(__FILE__)), '" />';
    
      echo '<table class="form-table">';
    
      foreach ($meta_box[$post->post_type]['fields'] as $field) {
          // get current post meta data
          $meta = get_post_meta($post->ID, $field['id'], true);
    
    		     echo '<tr>'.
                  '<th style="width:20%"><label for="'. $field['id'] .'">'. $field['name']. '</label></th>'.
                  '<td>';
          switch ($field['type']) {
    
              case 'radio':
                  foreach ($field['options'] as $option) {
    
                      echo '<input type="radio" name="' . $field['id'] . '" value="' . $option['value'] . '"' . ( $meta == $option['value'] ? ' checked="checked"' : '' ) . ' />' . $option['name'];
                  }
                  break;
    
                  }
          }
          echo     '<td>'.'</tr>';
      }
    
      echo '</table>';
    
    }
    
    // Save data from meta box
    function kjm_save_data($post_id) {
        global $meta_box,  $post;
    
        //Verify nonce
        if (!wp_verify_nonce($_POST['kjm_meta_box_nonce'], basename(__FILE__))) {
            return $post_id;
        }
    
        //Check autosave
        if (defined('DOING_AUTOSAVE') && DOING_AUTOSAVE) {
            return $post_id;
        }
    
        //Check permissions
        if ('page' == $_POST['post_type']) {
            if (!current_user_can('edit_page', $post_id)) {
                return $post_id;
            }
        } elseif (!current_user_can('edit_post', $post_id)) {
            return $post_id;
        }
    
        foreach ($meta_box[$post->post_type]['fields'] as $field) {
            $old = get_post_meta($post_id, $field['id'], true);
            $new = $_POST[$field['id']];
    
            if ($new && $new != $old) {
                update_post_meta($post_id, $field['id'], $new);
            } elseif ('' == $new && $old) {
                delete_post_meta($post_id, $field['id'], $old);
            }
        }
    }
    
    add_action('save_post', 'kjm_save_data');

    The data does save but this currently just returns the first two static options plus one with the most recent URL from the $attachments query.

Viewing 15 replies - 76 through 90 (of 105 total)