SitePoint Sponsor

User Tag List

Results 1 to 7 of 7

Hybrid View

  1. #1
    SitePoint Zealot
    Join Date
    Jun 2006
    Posts
    128
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Where is HTML code in PHP blog?

    Hi, I need to edit a title on this blog which uses a b2evolution PHP script.

    I've looked in skins main.php and in .css file, but can't find any file which would have "Amazing India" title within then code.

    I can see HTML code in this source code viewer though. I can copy paste it in Notepad and change it, but where to put it then?

  2. #2
    Caveat surfer Buddy Bradley's Avatar
    Join Date
    May 2003
    Location
    Cambridge, UK
    Posts
    2,366
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Look for the <title></title> tags in the PHP, and replace whatever is between them. Alternatively, can you not edit the title of the blog somewhere in the b2evolution config settings?

  3. #3
    SitePoint Zealot
    Join Date
    Jun 2006
    Posts
    128
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This is from main.php file:
    Code:
    <title><?php
    		$Blog->disp('name', 'htmlhead');
    		request_title( ' - ', '', ' - ', 'htmlhead' );
    	?></title>
    I want to delete the upmost title: "Amazing India" and make the banner clickable to point to "Home" (http://amazingindiaexperience.info)

    Now - should I delete something from this code?


    This banner code
    Code:
    <img id="frontphoto" src="http://img63.imageshack.us/img63/2272/jodiacyq1.jpg" />
    .
    How can I make this banner clickable?

  4. #4
    SitePoint Zealot rawkes's Avatar
    Join Date
    Oct 2006
    Location
    Surrey, UK
    Posts
    121
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    First of all, that isn't the code for the text you're referring to. That code refers to the text at the very top of the browser window (or in your taskbar when you minimise the browser).

    You want to edit / remove the code directly underneath these lines...

    Code:
    <body><div id="wrap">
    
    <div id="header">
    it's within some H1 tags.

    I hope this helps..

  5. #5
    SitePoint Zealot
    Join Date
    Jun 2006
    Posts
    128
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    OK, it's here:

    Code:
    <div class="pageHeader">
    
    	<h1 id="pageTitle"><?php $Blog->disp( 'name', 'htmlbody' ) ?></h1>
    
    	<div class="pageSubTitle"><?php $Blog->disp( 'tagline', 'htmlbody' ) ?></div>
    I want to delete the title and make the banner as title. (Home page)

  6. #6
    In memoriam gold trophysilver trophybronze trophy Dan Schulz's Avatar
    Join Date
    May 2006
    Location
    Aurora, Illinois
    Posts
    15,476
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You can always wrap the PHP code around <a> tags, like so if you want to make it clickable:
    Code:
    <h1 id="pageTitle"><a href="#"><?php $Blog->disp{ 'name', 'htmlbody' } ?></a></h1>
    Just make sure you replace the # with the link path you wish to use.

  7. #7
    SitePoint Zealot
    Join Date
    Jun 2006
    Posts
    128
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I've deleted THE WHOLE CODE from main.php file, saved and >> nothing happened.

    So - am I editing the wrong file?


    EDIT: No change takes effect - I guess I'm in the wrong file or something.

    I'm accessing skins/custom/_main.php directly from the "Templates" list of files from the blog.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •