Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6948163
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T13:47:10+00:00 2026-05-27T13:47:10+00:00

i’m trying to modify a Joomla template to create a link out of a

  • 0

i’m trying to modify a Joomla template to create a link out of a defined ‘div’ on the index.php page and am not having any luck. in the original source, there was an an object, ‘bglogo’ which is a static .jpg, and a separate area within it that contained the link. i got rid of the separate area, and now want to make bglogo a link. i can’t figure out how to do this, the php code is below and the webpage is tagalong.in (bglogo being the image in the top right corner of a name tag)

<div id="entries">
    <jdoc:include type="modules" name="content-top-a" style="xhtml" />
    <jdoc:include type="message" />
    <jdoc:include type="component" />
    <div class="clr"></div>
    <jdoc:include type="modules" name="content-bottom-a" style="xhtml" />
</div>

<div id="sidebar">

    <!-- logo about etc here -->
    <div class="bglogo">
        <a href= "http:www.meetup.com/tag-along" > </a>
    </div>

    <!-- menu -->
    <?php if( $this->countModules('sidebar-a') ) { ?>
    <div id="sidebartop">
        <jdoc:include type="modules" name="sidebar-a" style="xhtml" />
    </div>
    <?php } ?>

    <?php if( $this->countModules('sidebar-b') ) { ?>
    <div id="sidebarright">
        <jdoc:include type="modules" name="sidebar-b" style="xhtml" />
    </div>
    <?php } ?>


    <div id="sidebarleft">
        <?php if( $this->countModules('sidebar-c') ) { ?>
        <jdoc:include type="modules" name="sidebar-c" style="xhtml" />
        <?php } ?>
        <?php echo '<h3>Copyright</h3>'.$copyright . $warningerrorx; ?>
    </div>


</div>

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T13:47:11+00:00Added an answer on May 27, 2026 at 1:47 pm

    Okay I see where you are going.

    You will need to add http the colon and two forward slashes to the beginning of the link. (had to describe it that way as they get stripped – as per my original comment).

    The link is present already – but has nothing inside of it – because the image is a background image on the div. What you need to do is create some css that will apply only to the link within the div with the class of bglogo. This should then be given a width and height so it overlays your background image.

    Because the parent bglogo div is already the right height and width I’d suggest width: 100%; and height:100%. Be aware that links are generally inline elements and don’t normally take a height or width. So we must also tell the anchor (link) to behave like a block level element.

    All together that gives us:

    .bglogo a{display:block; width: 100%; height:100%;}
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Basically, what I'm trying to create is a page of div tags, each has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I'm trying to create an if statement in PHP that prevents a single post
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I am trying to understand how to use SyndicationItem to display feed which is
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I want to count how many characters a certain string has in PHP, but
I would like to count the length of a string with PHP. The string
this is what i have right now Drawing an RSS feed into the php,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.