• Resolved samijalal

    (@samijalal)


    hello

    i have a problem with changing the text of home title.

    I know its easy to go and change it inside wp-include/post_template.php

    but the problem that if i want to change permission in ftp to 777 it gives me (permission denied) so i call the hosting company to solve that but they told me “We Cannot, we are sorry plz read the limitations).. ??

    Besides, i checked the appearance editor file by file and did not find anything related.

    My website is https://salfit.info

    you can see that all the site in arabic (or mostly) except (Home).

    i follow a post her talking about index.php with codes inside appearance but unfortunately i did not find the code the writer talked about

    my index file code

    <?php
    /**
    * The main template file.
    *
    * This is the most generic template file in a WordPress theme
    * and one of the two required files for a theme (the other being style.css).
    * It is used to display a page when nothing more specific matches a query.
    * E.g., it puts together the home page when no home.php file exists.
    * Learn more: https://codex.www.ads-software.com/Template_Hierarchy
    *
    * @package thebox
    * @since thebox 1.0
    */

    get_header(); ?>

    <div id=”primary” class=”content-area”>
    <div id=”content” class=”site-content” role=”main”>

    <?php if ( have_posts() ) : ?>

    <?php // thebox_content_nav( ‘nav-above’ ); ?>

    <?php /* Start the Loop */ ?>
    <?php while ( have_posts() ) : the_post(); ?>

    <?php
    /* Include the Post-Format-specific template for the content.
    * If you want to overload this in a child theme then include a file
    * called content-___.php (where ___ is the Post Format name) and that will be used instead.
    */
    get_template_part( ‘content’, get_post_format() );
    ?>

    <?php endwhile; ?>

    <?php thebox_content_nav( ‘nav-below’ ); ?>

    <?php else : ?>

    <?php get_template_part( ‘no-results’, ‘index’ ); ?>

    <?php endif; ?>

    </div><!– #content .site-content –>
    </div><!– #primary .content-area –>

    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

Viewing 7 replies - 1 through 7 (of 7 total)
  • You are looking in the wrong files. The styling for your website is written in a language called CSS. You need to look in the styles.css file to find what you need to change.

    Read about “Inspect Element” this will help you find the code you need to change.

    I found the code you need to change the font size of the site title.

    I see you have JetPack installed. Goto Appearance->Edit CSS. If you don’t see Edit CSS, then goto JetPack setting and activate Custom CSS.
    Put the following code into the end of the file and click Save.

    h1.site-title {
       font-size:4em;
    }

    Ciao, Stacy

    Thread Starter samijalal

    (@samijalal)

    Thank you for the answer but i did not ask about changing the font of the site title.

    Let me explain again:

    If you look at my website you will find the Pages. One of the is “Home”

    what i want is to change the word into arabic so i asked where can i find this word and change without using FTP.

    Okay, all you wanted to change site-title.
    There are two ways –
    1. Through Settings (wordpress way): login to your dashboard.
    In settings > General, you will find site title just above Tagline.

    2. Through hard coding: I assume that your site title is in header.php of your website. (Note: this procedure is not come under wordpress best practices, and I am not liable for any problem/loss whatsoever).
    * Download header.php which resides in public_html/wp-content/themes/yourthemename/header.php on your desktop using FTP.
    *Open any plain text editor, just like notepad, textmate, gedit depending your operating system, and find this line of code

    <hgroup>
    	<h1 class="site-title"><a rel="home" title="????? ?????" href="https://salfit.info/">????? ?????</a></h1>
    	<span class="site-description">???? ?????? &ndash; ????? ?????</span>
    </hgroup>

    * Delete entire code better anchor tag and edit your site name there. Save and upload it back to your server using FTP.

    Remember, If you need to change site title in future, you have to go through the same process.

    sorry,
    it is between anchor tag, not better

    * Delete entire code between anchor tag and edit your site name there. Save and upload it back to your server using FTP.

    Thread Starter samijalal

    (@samijalal)

    sorry but again there is misunderstanding

    im not talking about site title.

    i`m talking about the Home icon beside pages which i can find it in page_template.php but the problem i cannot use ftp because of hosting limitations.

    the question is

    how can i change the Home to arabic without using ftp. i mean from the dashboard?

    First, you need to stop messing in wp-includes, and start working in your theme directory’s file.

    Second, if you want to change your home title from text to image. Then, you need to work with CSS. it is not exact code, but, a lot like hint.

    h1.site-title {
    	display: block;
    	width: Xpx; // width of your logo
    	height: Xpx; // height of your logo
    }
    h1.site-title a {
    	text-indent: -9999px; //
    	width: Xpx; // width of your logo
    	height: Xpx; // height of your logo
    }

    Otherwise, me and @stacyduval explained that well.

    To change the name of menu items go to Appearance->Menus

    Open up the menu item under Menu Structure by clicking on the arrow on the right of the menu item box.

    Change the text in the input box that says Navigation Label.

    Hopefully this what you are asking!

    Cheers, Stacy

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Home title text’ is closed to new replies.