• Resolved hassanalipak

    (@hassanalipak)


    Hi,
    I am using wordpress with a theme which has a slider and other content on the home page. Under the slider I want to add some information text. I would prefer to have that text from one of my page or post so that I can edit that whenever I want.
    What kind of code should I use for that and where should I put that?

    Thanks

Viewing 15 replies - 1 through 15 (of 16 total)
  • You would add a loop to that page… probably. URL?

    Thread Starter hassanalipak

    (@hassanalipak)

    thanks for your reply!

    adding url would also be fine but I would prefer to add a post or page from within the wordpress. I have already applied permalinks.

    No… provide an URL so that I can see the site and page you are working on.

    Thread Starter hassanalipak

    (@hassanalipak)

    it’s prelink.nl .

    Thread Starter hassanalipak

    (@hassanalipak)

    I would like to have three colum text under above the latest work. three columns as https://prelink.nl/werkwijze/ here

    Thanks S_ha_dum

    Alright, does your theme have a home.php or a front-page.php file?

    Thread Starter hassanalipak

    (@hassanalipak)

    here is a snapshot of all the files that the theme has
    https://prelink.nl/files.png

    Perhaps template-home.php is the one which is being used.

    Perhaps template-home.php is the one which is being used.

    Possibly, yes. Paste the contents of that file to the pastebin, please.

    Thread Starter hassanalipak

    (@hassanalipak)

    https://pastebin.com/JAbpH693 would you have a look?

    Looks like lines 13 to 15 echo page content. Have you looked in wp-admin->Pages for a front or a home page?

    Thread Starter hassanalipak

    (@hassanalipak)

    there are many files in wp-admin but not anyone which looks like home page.
    prelink.nl/wp-admin.png

    theme name is folioway

    No. You are not looking for files. You are logging into the WordPress backend and navigating to the “Pages” section. Look for the menu called “Pages” on the left side of any admin page.

    Thread Starter hassanalipak

    (@hassanalipak)

    yep, I have Pages but not any page for home or nothing which looks like homepage there.

    Thread Starter hassanalipak

    (@hassanalipak)

    although in appearance I have an editor with all the php files on the right side

    In order to edit the content of the page the way you say you want to, you need to have that front page template ‘attached’ to a ‘page’ in the backend. I am trying to figure out if you already that kind of association.

    Open up your template-home.php and replace <div class="inner"> with <div class="inner"><p>This is a test</p>. Load the front page and see if that text appears. That will confirm that we are looking at the correct file.

    Also, that editor you see in “Appearance” is dangerous. You can break your site with as little as a missing semi-colon or a missing quote mark, and you will have to login over FTP to correct the mistake. It is best to just login over FTP, IM(not-so)HO.

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Adding text on the dynamic hompage’ is closed to new replies.