• Dear all, I would like some smart individual to write me this plugin or give me some ideas please….

    I want to add 2 or 3 html codes to all my pages…. So I have around let’s say 100 pages, suppose I want to add an image in everypage…I would want to put the html code

    <img src=”image.gif” />

    Please do give few mins of your time, if this seems relatively easy to do.

    Thank you for reading.

Viewing 12 replies - 1 through 12 (of 12 total)
  • Your blog is running a theme, right? You can edit the theme files all you want. So, just add that html.

    Some of the information on this page may help: http://codex.wordpress.org/Using_Themes

    Thread Starter rottenlife

    (@rottenlife)

    hi handy solo thanks for your response. I wasn’t looking to edit my theme… I have 100 pages with contents in it…

    I want to suppose add a graph and some other stuff on each of those pages…thanks

    Do you mean pages as in WP pages, or pages as in static pages that are part of the site but not part of WP ?

    Thread Starter rottenlife

    (@rottenlife)

    poz, thank you for looking into this. I mean pages that are part of WP. The pages that you get from clicking “write page”.

    your thoughts will be greatly appreciated.. I have spent hours searching online to get a result but it seems without proper coding knowledge one will be failure..

    Aslong as all the pages have been created within pages thru “Write Pages” as you say then all you need to edit is the page.php file within you WordPress theme.

    This will ad it to each “Page” created within WordPress

    Thread Starter rottenlife

    (@rottenlife)

    Dear phunky,

    Suppose I want to add this html code:

    <u>text</u>

    <img src=”http://www.myurl.com/$title.jpg”/&gt;

    <u>Text2u>

    <img src=”htt://www.myurl.com/$title.jpg>

    what is $title : In that space I want the title of the page to appear. So suppose I created the page with name “John”, I want in that page to display.. john.jpg file

    thank you and please get back to me.

    Also, this should be editable as there are some pages I don’t WANT them.

    I have no idea about php codes.

    Thread Starter rottenlife

    (@rottenlife)

    anybody? Please…. I am trying to learn php for this simple thing… aint getting it in 2 days

    I think the confusion lies in the fact that you created all the pages in WP.

    Therefore, if you edit the page.php file, it will generally apply the HTML code to every page, not just one. To edit the html and have it display differently in each page, you’d have some massive if, else type statements that you’d manage on an ongoing basis.

    What everyone seems to be saying is that you created the page in WP, you can add that image in WP.

    There are a couple of plugins that might be out there that allow you to add an image based on the category of the post, but I’m not sure that’s quite what you want.

    If you’re willing to go into each page, it seems the best way is through the WYSIWYG page editor. If this is not what you’re looking for, please explain why.

    Thread Starter rottenlife

    (@rottenlife)

    double duds… I do want certain *HTML CODES* executed on all my wp pages (let’s say 100) except (let’s say 10) <–this I am willing edit out manually. (is that not possible?)

    Here is the real situation:
    I created around 100 pages with with a stock symbol (yes company stock symbol) and I want to load the graph from yahoo finance. Their url is pretty simple with only the symbol changing.

    example: http://ichart.finance.yahoo.com/b?s=bby

    in place of “bby”, I want MY stock symbol to appear automatically.. I have named my page with the stock symbol.

    I hope that is clear.

    thank you.

    Also I coudlnt’ find any page.php, I saw page_new.php and tried putting some php code from net, nothing changed it seems

    Check this plugin:
    http://thedeadone.net/software/search-and-replace-wordpress-plugin/
    but before you do anything with it, backup your db.
    The plugin itself is fine but you might do a wider than expected replace 🙂

    OK – I suppose what I’d do is put the code on page.php and edit out the 10 pages you don’t want it on. I’d help with exact code, but it’s all trial and error for me. I use the codex help. Thry this to see if it has what you’re looking for:

    http://codex.wordpress.org/Conditional_Tags

    You can add the conditional statement for each piece of html code you’re adding. I’d hate to manage 100 pages like that, perhaps someone else has a better way.

    I’m not sure how it is that you don’t have page.php. Are you talking about posts then? These should show on single.php I think. Either way, you should have both page.php and single.php.

    Not all themes have a page.php or even single.php template file. When these are missing – index.php is coming in… see Template_Hierarchy.
    But if you make one, e.g. by saving your index.php as page.php and editing a bit to your needs, everything should work nicely. I mean you add whatever code you wish to the Page template and it will appear on every Page created in WP.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Request: Adding few html codes to ALL Existing pages’ is closed to new replies.