WordPress.org

Ready to get started?Download WordPress

Forums

my own code in wp pages (18 posts)

  1. mariam9927
    Member
    Posted 2 years ago #

    I am new to word press. i want to know that if i write my own code e.g. signup and signin code besides using wordpress plugin, is it work in word press? can i develop word press as i develop and code normal php sites?

    any help is appreciated..

  2. Vanguard Digital
    Member
    Posted 2 years ago #

    Yes Definitely refer to the codex for available functions and tags

  3. mariam9927
    Member
    Posted 2 years ago #

    U want to say that i can use only available functions and tags. cannot write my own code like normally in PHP.

  4. Oleg Dudkin
    Member
    Posted 2 years ago #

    Actually, you can edit anything you want in wordpress. And it depends only on your programming skills wether it will work on not. And also you will loose ability to update and possible use some plugins.

    It is much easier to use wordpress API. Just open functions.php of your theme and create any functions you want. Find appropriate hooks in Codex and link your functions to events you want to replace.

  5. mariam9927
    Member
    Posted 2 years ago #

    Now i got some clue to deal with. Thank you

  6. ericr23
    Member
    Posted 2 years ago #

    You can include anything you want in your theme pages.

  7. timDesain
    Member
    Posted 2 years ago #

  8. mariam9927
    Member
    Posted 2 years ago #

    Thank you timDesain that link is very helpful for me.

  9. khalimaila
    Member
    Posted 2 years ago #

    Hi,

    By mistake I have deleted the code from search.php of twenty eleven theme and now search is not working now.

    Can someone please send me the default code to [ email removed, please stick with the forums ] so that I can update.

    Thanks in advance

  10. mariam9927
    Member
    Posted 2 years ago #

    Here is the code you can copy it from here.

    [Code moderated as per the Forum Rules. The maximum number of lines of code that you can post in these forums is ten lines. Please use the pastebin]

  11. khalimaila
    Member
    Posted 2 years ago #

    Hi Mariam,

    Thanks a lot for your reply...it worked ..hurray!

  12. khalimaila
    Member
    Posted 2 years ago #

    I have one more question if you don't mind:

    I want to change the look from a blog to website. I mean, every time I go to my page it shows "Nothing Found" with a search text box.

    I want to get rid of this and add some videos\images on the default(first page.

    If possible can you please send me any code for this type of things and directions where to add this code?

    I am newbie and trying to create a website,please help.

    Thanks a lot in advance.

  13. mariam9927
    Member
    Posted 2 years ago #

    Hi Khalimaila,

    please read that instructions for changing the blog to website.
    http://www.impressivewebs.com/10-wordpress-tips-to-make-your-blog-look-like-a-website/

    you can add image with simple

    img

    tag in sidebar appearance options.

  14. shegotmail
    Member
    Posted 2 years ago #

    Hi Everyone,

    I'm a complete novice to web building and Word Press.

    I am so frustrated doesn't describe me right now; I'm over my head.

    I have no prior experience with WP and I have encountered many difficulties on my 2 days journey trying to set up my first website. I have no idea how to make my posts appear on my homepage so, I went looking for answers on the web and copied some code that instead brought all my pages on my homepage. I didn't like it so I went back and deleted the code, apparently, I deleted almost all the existing codes and this is the message I get:

    Parse error: syntax error, unexpected $end in /home/premiers/public_html/wp-content/themes/esplanade/functions.php on line 23

    Please, I need your help as I see you know about codes and templates. Also how do I make all my posts show on my homepage while referring/numbering older posts?

    I look forward to your prompt response.

    Warm Regards,

    Robin

  15. esmi
    Forum Moderator
    Posted 2 years ago #

    Re-upload a fresh copy of your current theme to wp-content/theme using FTP.

  16. shegotmail
    Member
    Posted 2 years ago #

    Hey,

    Thanks for finding time to answer Esmi but, err..., what's FTP? and I can go no where on my site. when I logged in again I still got that message:

    Parse error: syntax error, unexpected $end in /home/premiers/public_html/wp-content/themes/esplanade/functions.php on line 23

    Nothing is moving or willing to move. Even called my web analyst friend on skype but he's half way across the globe in the US and I'm here in the UK. Frustration!!!

    I cannot go to themes or anywhere at all. that message is constant, even when I check my computer history and get to somewhere before the "accident", nothing but that message comes up.

  17. esmi
    Forum Moderator
    Posted 2 years ago #

    See FTP_Clients. Or use whatever file management application your host provides.

  18. shegotmail
    Member
    Posted 2 years ago #

    Thanks Esmi, I'll look into it. Hope it works out.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags