gabrielcastillo
Forum Replies Created
-
Forum: Themes and Templates
In reply to: How to crete this type of header? (Logo Search Bar Login)You will have to adjust the css for this to show how you want but here is a good starter of what you are asking.
Place this just before closing
</head>
<style type="text/css"> #logo, #search-bar, #users { float:left; margin-right:20px; } #users { margin-right:0; } </style>
In the header div section:
Replace
<hgroup>
with:<div id="logo"> <a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>"rel="home"><img src="https://dummyimage.com/450x150/000/fff" alt="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" /></a> </div> <div id="search-bar"> <form id="search-box" action="https://www.hotmug.org/" method="get" role="search"> <input id="s" type="text" name="s" value=""> <input id="search-box-submit" type="submit" value="Search"> </form> </div> <div id="users"> <?php if( is_user_logged_in() ): ?> <?php $current_user = wp_get_current_user(); ?> <p>Welcome: <?php echo ucfirst($current_user->display_name); ?></p> <?php endif; ?> </div>
Forum: Fixing WordPress
In reply to: How to Turn Comments Back On – 3.5.1 VersionYou could try and check to see if
comments_template()
function is present in your template files.Forum: Plugins
In reply to: [Contact Form 7] Range slideryou would have to modify the contact form 7 plugin to except a new input. also would have to modify the javascript for changing input to range slider. This is not a simple 123 task for the avg wordpress user.
Forum: Installing WordPress
In reply to: Site problems after movingcheck your new database against your old one.. sometimes when exporting or backing up a database, the data gets cut off..
Rename your htaccess file this could be causing issues with redirect
try installing a new instance of wordpress and see if that works.. this will eliminate your server having the issues.
I am on version 3.5.1 and I am able to add title, caption, alt text, description for each image. this can be done in a gallery or in media upload section. this should appear in the right side of the media upload window.
https://gabrielcastillo.net/images/wp-media-upload-edits.jpg
Forum: Fixing WordPress
In reply to: From PHP Mysql query to javascriptry this:
//jQuery $(document).ready(function(){ $.ajax({ url: 'url to page with function', type: 'GET', dataType: 'JSON', cache: false, success: function(data){ alert(data.course_name + data.participants + data.date); } return false; }); });
//PHP foreach($results as $result){ $data['course_name'] = $result->course_name; $data['participants'] = $result->participants; $data['date'] = $result->date; } $data = array('course_name' => $data['course_name', 'participants'=> $data['participants'], 'date' => $data['date']); echo json_encode($data);
This code will not work as is, you will need to make adjustments. But this will give you a idea of how to construct what you need.
Forum: Fixing WordPress
In reply to: custom fields with multiple values – out one at the time?why not use a foreach loop with
get_post_meta()
set to false and using the values of that arrayMight be a server issue. What are you running your apache and php on? When you are using on local computer, your host file is pointing directly to your local machine.. maybe you need to assign you local site with a ip address so other devices can point to the right directory.
Forum: Themes and Templates
In reply to: How to crete this type of header? (Logo Search Bar Login)This is what I would do with the html. Now you have to find the logo, search, users functions. Below is a simple example of some things i would do.
Logo example:
<img src="https://mysite.com/wp-content/uploads/2013/02/logo.png" alt="My Site" />
example search bar:
<form action="q" method="GET"> <input type="text" name="q" /> <input type="submit" name="search" value="Search" /> </form>
Users example:
<?php if ( is_user_logged_in() ) { echo 'Welcome, registered user!'; } else { echo 'Welcome, visitor!'; } ?>
<div id="logo"> //insert logo </div> <div id="search-bar"> //insert search form </div> <div id="users"> // insert user functions </div>
//CSS
#logo, #search-bar, #users { float:left; margi-right:20px; } #users { margin-right:0; }
Forum: Plugins
In reply to: [Contact Form 7] How do I use placeholder text with Contact Form 7?If you search for this issue you will find wordpress forums has alot to offer.
Check this thread out: https://www.ads-software.com/support/topic/plugin-contact-form-7-placeholder-for-html5?replies=5
Forum: Fixing WordPress
In reply to: Showing one page's content on another pageLight speed has a developers section, that might be a place to start. I would suggest hiring a developer for this if you feel this is out of your scope. You don’t want to end up breaking some code that will take down your whole site or your pos.
you could do some research with excerpts.. maybe you could create a function that will allow you to make custom excerpts and post them in a parent page.
Forum: Plugins
In reply to: database in serveryou need to create a form. Then point the form submission data to your form processor.
<form action=”processor.php” method=”POST”>
ENTER your HTML form inputs here
</form>google is the best place to start. Search create contact form with php or create registration form with php
Forum: Fixing WordPress
In reply to: Showing one page's content on another pageWell that is a horse of a different color! The question originally asked was answered with previous posts. Now the issue is integrating custom wordpress functions with lightspeed.
Forum: Plugins
In reply to: database in serverThis forum is for wordpress. What I think you are trying to do is create a simple registration page, you can do this with wordpress and some plugins like contact form 7.
But if you are trying to create this using html/php/mysql you need to create php form proccessor page, html form page.
the html form page will contain the user registration form and the processor page will contain the php data. you need to connect your php script to the database and then process the data from the form and insert into the database.
Look research php/mysql
Forum: Fixing WordPress
In reply to: Showing one page's content on another pageIf you are using wordpress the shortcode should work with any wordpress page, what eCommerce are you using?