Forum Replies Created

Viewing 12 replies - 1 through 12 (of 12 total)
  • Thread Starter inewss

    (@inewss)

    solved

    Thread Starter inewss

    (@inewss)

    Thank you for your quick answers.

    Thread Starter inewss

    (@inewss)

    i have another question, sorry i’m stressing you all the time.
    Although i have many posts updated every day with different topics, i receive traffic from google only for some interrogation, most of them regarding a post about apple releases ios 6.1.3, jailbreaking ios 6.1.3 etc. almost all of them are related to ios 6.1.3 which i posted almost 2 weeks ago.
    On my website there are many other posts concerning different topics, my question is why google redirects only people searching information about ios 6.1.3 and not something else to? Just as those topics wouldn’t exist.
    In google webmasters no interrogation words appear regarding those new different posts. I can provide any kind of information just ask me.
    Thank you

    this is my website https://www.inewss.com

    Thread Starter inewss

    (@inewss)

    So its best to leave it as it is right? i’m sory i can’t access youtube i’m at work…

    Thread Starter inewss

    (@inewss)

    https://webdesign.about.com/od/seo/a/why_use_h1_for_seo.htm

    i would like to make h3 tags for author and comments. i’m thinking this will give better seo.

    Thread Starter inewss

    (@inewss)

    i have tried with another websites and they don’t have h2 tags for author and comments. H2 tags are the second most important after h1 tags.
    They are not ment for author and comments.

    This is the seo analyzer website: https://www.seoworkers.com/

    Thread Starter inewss

    (@inewss)

    thank you wpyogi i managed to do it by deleting text-transform snippet

    Thread Starter inewss

    (@inewss)

    i,ve managed to do it myself topic resolved.

    Thread Starter inewss

    (@inewss)

    I’ll make a child theme but does anyone know that file do i have to modify?

    Thread Starter inewss

    (@inewss)

    this is the footer code

    <?php
    /**
     * The template for displaying the footer.
     *
     * Contains the closing of the #main-wrapper ul and the #body-wrapper div.
     * Includes all the action blocks for the footer.
     *
     * @since PressWork 1.0
     */
     ?>
       	</ul> <!-- end #main-wrapper ul -->
    	<footer id="footer-main" class="clearfix fl" role="contentinfo"> <!-- begin footer -->
    		<?php pw_actionBlock('pw_footer'); ?>
    	</footer> <!-- end footer -->
    </div> <!-- end #body-wrapper -->
    <?php pw_actionCall('pw_body_bottom'); ?>
    <?php wp_footer(); ?>
    <!-- PressWork framework created by c.bavota & Brendan Sera-Shriar - https://presswork.me -->
    </body>
    </html>

    `

    Thread Starter inewss

    (@inewss)

    Yes thats the theme

    Thread Starter inewss

    (@inewss)

    i m using voidy theme under the functions.php i can t find any code that resambles this one mentioned in the instalation guide:

    [ Moderator Note: Please post code or markup snippets between backticks or use the code button. ]

    div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">←</span> Older posts', 'twentyten' ) ); ?></div>
    <div class="nav-next"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">→</span>', 'twentyten' ) ); ?></div>

    This is my functions.php file where should i modify it?

    <?php
    //check_admin_referer();
    
    $themename = "Voidy";
    $shortname = "voidy";
    
    load_theme_textdomain($shortname);
    
    $option_values = "";
    
    $options = array (
    
    	array(	"name" => "Header",
    			"type" => "title",
    			"id" => $shortname."_temp"),
    
    	array(	"type" => "open",
    			"id" => $shortname."_temp"),
    
    	array(	"name" => "Logo",
    			"desc" => "URL to the logo image to be used instead of the site name. Give the complete path. (Giving a value in this field will hide your site name).",
    			"id" => $shortname."_logo",
    			"std" => "",
    			"type" => "text"),
    
    	array(	"name" => "Logo CSS Style",
    			"desc" => "CSS styles that need to be applied to the logo img tag can be given here.",
    			"id" => $shortname."_logo_style",
    			"std" => "",
    			"type" => "text"),
    
    	array(	"name" => "Favicon",
    			"desc" => "URL to the favicon (shortcut icon) image to be used. Give the complete path.",
    			"id" => $shortname."_favicon",
    			"std" => "",
    			"type" => "text"),			
    
    	array(	"name" => "Twitter",
    			"desc" => "Your twitter username which will be linked to from the header.",
    			"id" => $shortname."_twitter",
    			"std" => "",
    			"type" => "text"),
    
    	array(  "name" => "Hide Twitter?",
    			"desc" => "Check this box if you would like to HIDE the Twitter link in the header.",
                "id" => $shortname."_hide_twitter",
                "type" => "checkbox",
                "std" => "false"),
    
    	array(	"name" => "RSS Feed",
    			"desc" => "The URL of your RSS Feed which will be linked to from the header.",
    			"id" => $shortname."_rss",
    			"std" => "".get_bloginfo('rss_url')."",
    			"type" => "text"),
    
    	array(  "name" => "Hide RSS?",
    			"desc" => "Check this box if you would like to HIDE the RSS link in the header.",
                "id" => $shortname."_hide_rss",
                "type" => "checkbox",
                "std" => "false"),
    
    	array(  "name" => "Disable submenus?",
    			"desc" => "Check this box if you would like to disable sub menus for child pages in the main navigation menu at the top.",
                "id" => $shortname."_disable_submenus",
                "type" => "checkbox",
                "std" => "false"),
    
    	array(  "name" => "Show Email Subscription?",
    			"desc" => "Check this box if you would like to show the email subscription form for Feedburner. (For this to work you should fill out the FeedBurber ID setting given below too.)",
                "id" => $shortname."_show_email",
                "type" => "checkbox",
                "std" => "false"),
    
    	array(	"name" => "FeedBurner ID",
    			"desc" => "Eg: If your FeedBurner RSS URL is <b>https://feeds2.feedburner.com/Diovo</b> give <b>Diovo</b> in the above field",
    			"id" => $shortname."_feedburner",
    			"std" => "",
    			"type" => "text"),
    
    	array(  "name" => "Hide sidebar text?",
    			"desc" => "Check this box if you would like to HIDE the below text from the sidebar.",
                "id" => $shortname."_hide_sidebar_text",
                "type" => "checkbox",
                "std" => "false"),
    
    	array(	"name" => "Sidebar Text",
    			"desc" => "Text to display in the sidebar.",
                "id" => $shortname."_sidebar_text",
    			"std" => "What I say is immensely important than who I am. Let the search be for the meaning and substance in my words rather than the intricacies of my existence.
    
    Go to <a href='wp-admin/themes.php?page=functions.php'>the theme admin page</a> to edit/remove this text.",
                "type" => "textarea"),
    
    	array(  "name" => "Hide Tags?",
    			"desc" => "Check this box if you would like to HIDE the Tags section from under posts.",
                "id" => $shortname."_hide_tags",
                "type" => "checkbox",
                "std" => "false"),
    
    	array(  "name" => "Hide Author Name & Categories?",
    			"desc" => "Check this box if you would like to HIDE the Author Name & Categories section from the single posts.",
                "id" => $shortname."_hide_categories",
                "type" => "checkbox",
                "std" => "false"),
    
    	array(	"type" => "close",
    			"id" => $shortname."_temp")
    
    );
    
    get_theme_option();
    
    function mytheme_add_admin() {
        global $themename, $shortname, $options;
    	$optionvar = array();
        if ( isset($_GET['page']) && $_GET['page'] == basename(__FILE__) )  {
            if ( isset($_REQUEST['action']) && 'save' == $_REQUEST['action'] ) {
    				check_admin_referer( 'voidy-nonce');
                    foreach ($options as $value) {
    	                if($value['id']!="voidy_temp")
    	                    if( isset( $_REQUEST[ $value['id'] ] ) ) {
    							$optionvar[$value['id']] = $_REQUEST[ $value['id']];
    						} else {
    							$optionvar[$value['id']] = $value['std'];
    						}
    					}
    				update_option( $shortname."_options", $optionvar  );
    				header("Location: themes.php?page=functions.php&saved=true");
                    die;
            } else if( isset($_REQUEST['action']) && 'reset' == $_REQUEST['action'] ) {
    			check_admin_referer( 'voidy-nonce');
    			delete_option( $shortname."_options" );
                header("Location: themes.php?page=functions.php&reset=true");
                die;
            }
        }
        add_theme_page($themename." Options", "".$themename." Options", 'edit_themes', basename(__FILE__), 'mytheme_admin');
    }
    
    function get_theme_option(){
    	global $themename, $shortname, $options, $option_values;
    	$optionvar = get_option( $shortname."_options");
    	foreach ($options as $value) {
    		if($value['id']!="voidy_temp")
    			if(isset($optionvar[$value['id']])){
    				$option_values[$value['id']] = $optionvar[$value['id']];
    			}else{
    				$option_values[$value['id']] = $value['std'];
    			}
    	}
    }
    
    function mytheme_admin() {
        global $themename, $shortname, $options, $option_values;
        if ( isset($_REQUEST['saved']) &&  $_REQUEST['saved'] ) echo '<div id="message" class="updated fade"><p><strong>'.$themename.' settings saved.</strong></p></div>';
        if ( isset($_REQUEST['reset']) &&  $_REQUEST['reset'] ) echo '<div id="message" class="updated fade"><p><strong>'.$themename.' settings reset.</strong></p></div>';
    ?>
    <div class="wrap">
    <h2><?php echo $themename; ?> settings</h2>
    <?php 
    
    foreach ($options as $value) {
        switch ( $value['type'] ) {
    		case "open":
    		?>
    
    		<form method="post">
    		<table width="100%" border="0" style="background-color:#eef5fb; padding:10px;">
    
    		<?php break;
    
    		case "close":
    		?>
    
            </table>
    
    		<?php break;
    			case "title":
    		?>
    				<div>
    				<?php _e('Donate to support the development of this theme:', "voidy" ); ?> <form action="https://www.paypal.com/cgi-bin/webscr" method="post"> <input name="cmd" type="hidden" value="_s-xclick" /> <input name="hosted_button_id" type="hidden" value="10883505" /> <input alt="PayPal - The safer, easier way to pay online!" name="submit" src="https://www.paypal.com/en_US/i/btn/btn_donate_SM.gif" type="image" /> <img src="https://www.paypal.com/en_US/i/scr/pixel.gif" border="0" alt="" width="1" height="1" /></form>
    				</div>
    
    		<?php break;
    
    		case 'text':
    		?>
    
            <tr>
                <td width="20%" rowspan="2" valign="middle"><strong><?php echo $value['name']; ?></strong></td>
                <td width="80%"><input style="width:400px;" name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>" type="<?php echo $value['type']; ?>" value="<?php if ( $option_values[ $value['id'] ] != "") { echo $option_values[ $value['id'] ]; } else { echo $value['std']; } ?>" /></td>
            </tr>
    
            <tr>
                <td><small><?php echo $value['desc']; ?></small></td>
            </tr><tr><td colspan="2" style="margin-bottom:5px;border-bottom:1px dotted #000000;">?</td></tr><tr><td colspan="2">?</td></tr>
    
    		<?php
    		break;
    
    		case 'textarea':
    		?>
    
            <tr>
                <td width="20%" rowspan="2" valign="middle"><strong><?php echo $value['name']; ?></strong></td>
                <td width="80%"><textarea name="<?php echo $value['id']; ?>" style="width:400px; height:200px;" cols="" rows=""><?php if ( $option_values[ $value['id'] ] != "") { echo stripslashes($option_values[ $value['id'] ]); } else { echo $value['std']; } ?></textarea></td>
    
            </tr>
    
            <tr>
                <td><small><?php echo $value['desc']; ?></small></td>
            </tr><tr><td colspan="2" style="margin-bottom:5px;border-bottom:1px dotted #000000;">?</td></tr><tr><td colspan="2">?</td></tr>
    
    		<?php
    		break;
    
    		case 'select':
    		?>
            <tr>
                <td width="20%" rowspan="2" valign="middle"><strong><?php echo $value['name']; ?></strong></td>
                <td width="80%"><select style="width:240px;" name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>"><?php foreach ($value['options'] as $option) { ?><option<?php if ( $option_values[ $value['id'] ] == $option) { echo ' selected="selected"'; } elseif ($option == $value['std']) { echo ' selected="selected"'; } ?>><?php echo $option; ?></option><?php } ?></select></td>
           </tr>
    
           <tr>
                <td><small><?php echo $value['desc']; ?></small></td>
           </tr><tr><td colspan="2" style="margin-bottom:5px;border-bottom:1px dotted #000000;">?</td></tr><tr><td colspan="2">?</td></tr>
    
    		<?php
            break;
    
    		case "checkbox":
    		?>
                <tr>
                <td width="20%" rowspan="2" valign="middle"><strong><?php echo $value['name']; ?></strong></td>
                    <td width="80%"><?php if($option_values[$value['id']]=="true"){ $checked = "checked=\"checked\""; }else{ $checked = ""; } ?>
                            <input type="checkbox" name="<?php echo $value['id']; ?>" id="<?php echo $value['id']; ?>" value="true" <?php echo $checked; ?> />
                            </td>
                </tr>
    
                <tr>
                    <td><small><?php echo $value['desc']; ?></small></td>
               </tr><tr><td colspan="2" style="margin-bottom:5px;border-bottom:1px dotted #000000;">?</td></tr><tr><td colspan="2">?</td></tr>
    
            <?php 		break;
    }
    }
    ?>
    
    </table>
    
    <p class="submit">
    <input name="save" type="submit" value="<?php _e('Save changes', "voidy" ); ?>" />
    <input type="hidden" name="action" value="save" />
    </p>
    <?php wp_nonce_field('voidy-nonce'); ?>
    </form>
    <form method="post">
    	<?php wp_nonce_field('voidy-nonce'); ?>
    	<p class="submit">
    	<input name="reset" type="submit" value="Reset" />
    	<input type="hidden" name="action" value="reset" />
    	</p>
    </form>
    
    <?php
    }
    
    add_action('admin_menu', 'mytheme_add_admin');
    add_theme_support('menus');
    add_action( 'init', 'register_my_menu' );
    
    function register_my_menu() {
    	register_nav_menu( 'primary-menu', __( 'Primary Menu' ) );
    }
    
    function default_nav_menu() {
    
    	global $options, $option_values;
    
    	foreach ($options as $value) {
    		if($value['id'] != "voidy_temp"){
    			if (empty($option_values[ $value['id']])) {
    				$$value['id'] = $value['std'];
    			} else {
    				$$value['id'] = $option_values[ $value['id'] ];
    			}
    		}
    	}
    
    	$menu_content = "
    <ul><li ";
    	if(is_home()){
    		$menu_content .= ' class="current_page_item"';
    	}
    	$menu_content .= "><a title='Home'>". __("Home", "voidy" )."</a>";
        $menu_content .= wp_list_pages('title_li=&depth='.($voidy_disable_submenus == "true" ? 1 : 3).'&echo=0');
    	$menu_content .= "</ul>
    ";
    	echo $menu_content;
    	return false;
    }
    
    if ( function_exists('register_sidebar') ) {register_sidebar();} 
    
    // add? [youtube=]
    function youtube_embed($atts, $content = null){
    extract(shortcode_atts(array(
    'size' => 'm'
    ), $atts));
    $content = substr($atts[0] ,1);
    if($size=="s" || $size=="S"){$width=320; $height=265;}
    elseif ($size=="m" || $size=="M"){$width=425; $height=344;}
    elseif ($size=="l" || $size=="L"){$width=480; $height=385;}
    elseif ($size=="xl" || $size=="XL"){$width=640; $height=505;}
    $content = str_replace("watch?v=", "v/", $content);
    $output='<object type="application/x-shockwave-flash" data="' . $content . '" width="' . $width . '" height="' . $height . '"><param name="movie" value="' . $content . '" /><param name="FlashVars" value="playerMode=embedded" /><param name="wmode" value="transparent" /></object>';
    return $output;
    }
    add_shortcode('youtube', 'youtube_embed');
    // add? [googlevideo=]
    function googlevideo_embed($atts, $content = null){
    extract(shortcode_atts(array(
    'size' => 'm'
    ), $atts));
    $content = substr($atts[0] ,1);
    if($size=="s" || $size=="S"){$width=320; $height=265;}
    elseif ($size=="m" || $size=="M"){$width=425; $height=344;}
    elseif ($size=="l" || $size=="L"){$width=480; $height=385;}
    elseif ($size=="xl" || $size=="XL"){$width=640; $height=505;}
    $content = str_replace("https://video.google.com/videoplay?docid=-", "", $content);
    $content = 'https://video.google.com/googleplayer.swf?docId=-' . $content;
    $output='<object type="application/x-shockwave-flash" data="' . $content . '" width="' . $width . '" height="' . $height . '"><param name="movie" value="' . $content . '" /><param name="FlashVars" value="playerMode=embedded" /><param name="wmode" value="transparent" /></object>';
    return $output;
    }
    add_shortcode('googlevideo', 'googlevideo_embed');
    
    function get_comment_fields($fields){
    
    	$req = get_option( 'require_name_email' );
    	$aria_req = ( $req ? " aria-required='true'" : '' );
    
    	$commenter = wp_get_current_commenter();
    	$fields['author'] = '<p class="comment-form-author">' .
    					'<input id="author" name="author" type="text" value="' . esc_attr( $commenter['comment_author'] ) . '" size="30"' . $aria_req . ' />'.
    					'<label for="author">' . __( 'Name' ) . ( $req ? __(" (required)", "voidy" )  : '' ) . '</label></p>';
    
    	$fields['email']  = '<p class="comment-form-email">'.
    					'<input id="email" name="email" type="text" value="' . esc_attr(  $commenter['comment_author_email'] ) . '" size="30"' . $aria_req . ' />'.
    					'<label for="email">' . __( 'Email' ) . ( $req ? __(" (required)", "voidy" ) : '' ) . '</label></p>';
    
    	$fields['url']    = '<p class="comment-form-url">'.
    					'<input id="url" name="url" type="text" value="' . esc_attr( $commenter['comment_author_url'] ) . '" size="30" />'.
    					'<label for="url">' . __( 'Website' ) . '</label></p>';
    
    	return $fields;
    
    }
    add_filter('comment_form_default_fields','get_comment_fields');

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